When doing multiple regression tests, add a counter to the name so we see a status.
This commit is contained in:
parent
facd5d1ea1
commit
bf820055ca
@ -706,6 +706,7 @@ namespace EduNetworkBuilder
|
|||||||
List<string> Puzzles = NB.GetPuzzleNames();
|
List<string> Puzzles = NB.GetPuzzleNames();
|
||||||
NBSettings oursettings = NB.GetSettings();
|
NBSettings oursettings = NB.GetSettings();
|
||||||
if (Puzzles == null) return;
|
if (Puzzles == null) return;
|
||||||
|
List<string> NeedingToDo = new List<string>();
|
||||||
foreach (string OnePuzzle in Puzzles)
|
foreach (string OnePuzzle in Puzzles)
|
||||||
{
|
{
|
||||||
pi = NB.GetPuzzleInfoFromName(OnePuzzle);
|
pi = NB.GetPuzzleInfoFromName(OnePuzzle);
|
||||||
@ -722,23 +723,30 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
if (isChecked(tag))
|
if (isChecked(tag))
|
||||||
{
|
{
|
||||||
|
NeedingToDo.Add(OnePuzzle);
|
||||||
//Visible = false;
|
|
||||||
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
|
||||||
if (myWin != null)
|
|
||||||
{
|
|
||||||
//myWin.Activate();
|
|
||||||
FormColorForTesting();
|
|
||||||
myWin.replayNetwork(OnePuzzle, 1);
|
|
||||||
//Return back to the listbox window
|
|
||||||
Visible = true;
|
|
||||||
Activate();
|
|
||||||
FormColorContinuingLoop();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Now, loop through and do them
|
||||||
|
int count = NeedingToDo.Count;
|
||||||
|
foreach(string OnePuzzle in NeedingToDo)
|
||||||
|
{
|
||||||
|
//Visible = false;
|
||||||
|
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
||||||
|
if (myWin != null)
|
||||||
|
{
|
||||||
|
//myWin.Activate();
|
||||||
|
FormColorForTesting();
|
||||||
|
myWin.replayNetwork(OnePuzzle, 1, count--);
|
||||||
|
//Return back to the listbox window
|
||||||
|
Visible = true;
|
||||||
|
Activate();
|
||||||
|
FormColorContinuingLoop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FormColorBackToNormal();
|
FormColorBackToNormal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2866,7 +2866,7 @@ namespace EduNetworkBuilder
|
|||||||
#endregion Random Map Stuff
|
#endregion Random Map Stuff
|
||||||
|
|
||||||
#region network replay stuff
|
#region network replay stuff
|
||||||
public void replayNetwork(string NetworkName, int delay_between)
|
public void replayNetwork(string NetworkName, int delay_between, int Countdown=-1)
|
||||||
{
|
{
|
||||||
//Prepare for replay
|
//Prepare for replay
|
||||||
// reset to original map
|
// reset to original map
|
||||||
@ -2884,6 +2884,11 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
//Loading the network automatically registers it as the current replay
|
//Loading the network automatically registers it as the current replay
|
||||||
LoadNetworkFromResource(NetworkName, true);
|
LoadNetworkFromResource(NetworkName, true);
|
||||||
|
|
||||||
|
if(Countdown >=0)
|
||||||
|
{
|
||||||
|
Text = "(" + Countdown + ") " + Text; //How many more to do
|
||||||
|
}
|
||||||
|
|
||||||
//Make a boolean that says we are in a replaying state
|
//Make a boolean that says we are in a replaying state
|
||||||
//make an index that shows the index we are to replay
|
//make an index that shows the index we are to replay
|
||||||
|
Loading…
Reference in New Issue
Block a user