Change colors of window so we know we are doing testing.

This commit is contained in:
Tim Young 2018-10-01 15:29:30 -05:00
parent 481ddc0121
commit 78c4af5b8d

View File

@ -534,15 +534,19 @@ namespace EduNetworkBuilder
if (oursettings.HasReplay(TheName))
{
//myWin.Activate();
FormColorForTesting();
myWin.replayNetwork(TheName, 1);
//Return back to the listbox window
Visible = true;
Activate();
FormColorBackToNormal();
}
else
{
if (lbWindowData.SelectedItem != null)
{
NB.LoadNetworkFromResource(TheName);
}
}
}
}
@ -550,6 +554,22 @@ namespace EduNetworkBuilder
else Close();
}
private void FormColorForTesting()
{
this.BackColor = Color.GreenYellow;
Application.DoEvents();
}
private void FormColorBackToNormal()
{
this.BackColor = SystemColors.Control;
Application.DoEvents();
}
private void FormColorContinuingLoop()
{
this.BackColor = Color.DarkGray;
Application.DoEvents();
}
/// <summary>
/// The checkmark was changed. Tally up everything
/// </summary>
@ -693,15 +713,18 @@ namespace EduNetworkBuilder
if (myWin != null)
{
//myWin.Activate();
FormColorForTesting();
myWin.replayNetwork(OnePuzzle, 1);
//Return back to the listbox window
Visible = true;
Activate();
FormColorContinuingLoop();
}
break;
}
}
}
FormColorBackToNormal();
}