When doing multiple regression tests, add a counter to the name so we see a status.

This commit is contained in:
2018-10-23 08:52:28 -05:00
parent facd5d1ea1
commit bf820055ca
2 changed files with 27 additions and 14 deletions

View File

@ -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();
}