Tweaked some things

This commit is contained in:
2023-05-25 14:15:12 +02:00
parent f417f3581a
commit c105382269
3 changed files with 50 additions and 13 deletions
+6
View File
@@ -230,6 +230,7 @@ namespace Test_Merge
btnSettings.Enabled = true;
btnStartDecoding.Enabled = false;
btnStopUpdating.Enabled = false;
btnSettings.Enabled = false;
int errorCode = -1;
await Task.Run(async () =>
{
@@ -250,6 +251,8 @@ namespace Test_Merge
//IMPLEMENT MORE SPECIFIC ERROR CODES !!
MessageBox.Show("An error has occured while trying to start the driver.");
btnResetEmulator.Enabled = true;
btnSettings.Enabled = true;
btnResetEmulator.Text = "Retry";
}
else
{
@@ -289,6 +292,9 @@ namespace Test_Merge
}
public void btnDriver_Click(object sender, EventArgs e)
{
//Removes the cover
if (pnlCover.Visible = true)
pnlCover.Visible = false;
//Happens when a driver button has been clicked
//MessageBox.Show((sender as Button).Name + " has been selected");
Button btn = (sender as Button);