Have regression testing return to the listbox window when a test has completed.
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user