Skip to content
Permalink
Browse files

Removed 'write OS and cal' button, enabled 'write full' button.

  • Loading branch information...
LegacyNsfw committed Apr 12, 2019
1 parent 550ab02 commit a159b6aad139ec67343647bfcf70952381d8d4e2
Showing with 7 additions and 61 deletions.
  1. +7 −23 Apps/PcmHammer/MainForm.Designer.cs
  2. +0 −38 Apps/PcmHammer/MainForm.cs

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -340,7 +340,6 @@ private void DisableUserInput()
this.testWriteButton.Enabled = false;
this.writeCalibrationButton.Enabled = false;
this.writeParametersButton.Enabled = false;
this.writeOsAndCalibration.Enabled = false;
this.writeFullContentsButton.Enabled = false;
this.exitKernelButton.Enabled = false;
this.reinitializeButton.Enabled = false;
@@ -363,7 +362,6 @@ private void EnableUserInput()
this.testWriteButton.Invoke((MethodInvoker)delegate () { this.testWriteButton.Enabled = true; });
this.writeCalibrationButton.Invoke((MethodInvoker)delegate () { this.writeCalibrationButton.Enabled = true; });
this.writeParametersButton.Invoke((MethodInvoker)delegate () { this.writeParametersButton.Enabled = true; });
this.writeOsAndCalibration.Invoke((MethodInvoker)delegate () { this.writeOsAndCalibration.Enabled = true; });
this.writeFullContentsButton.Invoke((MethodInvoker)delegate () { this.writeFullContentsButton.Enabled = true; });
this.exitKernelButton.Invoke((MethodInvoker)delegate () { this.exitKernelButton.Enabled = true; });
this.reinitializeButton.Invoke((MethodInvoker)delegate () { this.reinitializeButton.Enabled = true; });
@@ -739,42 +737,6 @@ private void writeParametersButton_Click(object sender, EventArgs e)
}
}

/// <summary>
/// Write the operating system and calibration.
/// </summary>
private void writeOsAndCalibration_Click(object sender, EventArgs e)
{
DelayDialogBox dialogBox = new DelayDialogBox();
DialogResult dialogResult = dialogBox.ShowDialog();
if (dialogResult == DialogResult.Cancel)
{
return;
}

if (!BackgroundWorker.IsAlive)
{
DialogResult result = MessageBox.Show(
"Changing the operating system can render the PCM unusable." + Environment.NewLine +
"Special tools may be needed to make the PCM work again." + Environment.NewLine +
"Are you sure you really want to take that risk?",
"This is dangerous.",
MessageBoxButtons.YesNo,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2);

if (result == DialogResult.No)
{
this.AddUserMessage("You have made a wise choice.");
}
else
{
BackgroundWorker = new System.Threading.Thread(() => write_BackgroundThread(WriteType.OsAndCalibration));
BackgroundWorker.IsBackground = true;
BackgroundWorker.Start();
}
}
}

/// <summary>
/// Write the entire flash.
/// </summary>

0 comments on commit a159b6a

Please sign in to comment.
You can’t perform that action at this time.