Have regression testing return to the listbox window when a test has completed.

This commit is contained in:
2018-09-26 10:33:22 -05:00
parent aaf7afdd65
commit 73b11719b8
4 changed files with 36 additions and 9 deletions

View File

@ -57,6 +57,8 @@ namespace EduNetworkBuilder
string NoTestString = "No Test";
string PassedString = "Passed";
string FailedString = "Failed;";
public bool ClosingRegression = false;
/// <summary>
/// Instantiate a ListBoxWindow for use in choosing a network to load
@ -494,6 +496,7 @@ namespace EduNetworkBuilder
if (lbWindowData.SelectedItem != null)
NB.LoadNetworkFromResource(TheName);
}
Close();
}
else if (MyMode == LBContents.regressiontest)
{
@ -507,10 +510,13 @@ namespace EduNetworkBuilder
{
myWin.Activate();
myWin.replayNetwork(TheName, 1);
//Return back to the listbox window
Visible = true;
Activate();
}
}
}
Close();
else Close();
}
/// <summary>
@ -621,7 +627,8 @@ namespace EduNetworkBuilder
}
//In regression, this is the close button
if (MyMode == LBContents.regressiontest)
{
{
ClosingRegression = true;
Close();
}
}