better tracking of passed / failed

This commit is contained in:
Tim Young 2018-09-26 11:30:06 -05:00
parent 73b11719b8
commit ead0d3511f

View File

@ -432,6 +432,8 @@ namespace EduNetworkBuilder
MPE.isdone = wasfinished; MPE.isdone = wasfinished;
MPE.level = pi.strLevel; MPE.level = pi.strLevel;
MPE.InRegressionMode = true; MPE.InRegressionMode = true;
if (oursettings.HasPassed(puzzle_name)) MPE.PassedTest = true;
if (oursettings.HasFailed(puzzle_name)) MPE.FailedTest = true;
MPE.HasTest = oursettings.HasReplay(puzzle_name); MPE.HasTest = oursettings.HasReplay(puzzle_name);
if (selected == "" && !wasfinished) selected = shown_name; //Select the first unfinished puzzle if (selected == "" && !wasfinished) selected = shown_name; //Select the first unfinished puzzle
lbWindowData.Items.Add(MPE); lbWindowData.Items.Add(MPE);