Change colors of window so we know we are doing testing.
This commit is contained in:
parent
481ddc0121
commit
78c4af5b8d
@ -534,22 +534,42 @@ namespace EduNetworkBuilder
|
|||||||
if (oursettings.HasReplay(TheName))
|
if (oursettings.HasReplay(TheName))
|
||||||
{
|
{
|
||||||
//myWin.Activate();
|
//myWin.Activate();
|
||||||
|
FormColorForTesting();
|
||||||
myWin.replayNetwork(TheName, 1);
|
myWin.replayNetwork(TheName, 1);
|
||||||
//Return back to the listbox window
|
//Return back to the listbox window
|
||||||
Visible = true;
|
Visible = true;
|
||||||
Activate();
|
Activate();
|
||||||
|
FormColorBackToNormal();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (lbWindowData.SelectedItem != null)
|
if (lbWindowData.SelectedItem != null)
|
||||||
|
{
|
||||||
NB.LoadNetworkFromResource(TheName);
|
NB.LoadNetworkFromResource(TheName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else Close();
|
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>
|
/// <summary>
|
||||||
/// The checkmark was changed. Tally up everything
|
/// The checkmark was changed. Tally up everything
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -693,15 +713,18 @@ namespace EduNetworkBuilder
|
|||||||
if (myWin != null)
|
if (myWin != null)
|
||||||
{
|
{
|
||||||
//myWin.Activate();
|
//myWin.Activate();
|
||||||
|
FormColorForTesting();
|
||||||
myWin.replayNetwork(OnePuzzle, 1);
|
myWin.replayNetwork(OnePuzzle, 1);
|
||||||
//Return back to the listbox window
|
//Return back to the listbox window
|
||||||
Visible = true;
|
Visible = true;
|
||||||
Activate();
|
Activate();
|
||||||
|
FormColorContinuingLoop();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
FormColorBackToNormal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user