When doing multiple regression tests, add a counter to the name so we see a status.
This commit is contained in:
@ -706,6 +706,7 @@ namespace EduNetworkBuilder
|
||||
List<string> Puzzles = NB.GetPuzzleNames();
|
||||
NBSettings oursettings = NB.GetSettings();
|
||||
if (Puzzles == null) return;
|
||||
List<string> NeedingToDo = new List<string>();
|
||||
foreach (string OnePuzzle in Puzzles)
|
||||
{
|
||||
pi = NB.GetPuzzleInfoFromName(OnePuzzle);
|
||||
@ -722,23 +723,30 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
if (isChecked(tag))
|
||||
{
|
||||
|
||||
//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();
|
||||
}
|
||||
NeedingToDo.Add(OnePuzzle);
|
||||
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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user