Get the puzzle to do a replay
This commit is contained in:
parent
d4e206047c
commit
b87d1acd93
@ -495,6 +495,21 @@ namespace EduNetworkBuilder
|
|||||||
NB.LoadNetworkFromResource(TheName);
|
NB.LoadNetworkFromResource(TheName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (MyMode == LBContents.regressiontest)
|
||||||
|
{
|
||||||
|
if (lbWindowData.SelectedItem is MyPuzzleEntry)
|
||||||
|
{
|
||||||
|
MyPuzzleEntry MPE = (MyPuzzleEntry)lbWindowData.SelectedItem;
|
||||||
|
string TheName = MPE.PuzzleName;
|
||||||
|
Visible = false;
|
||||||
|
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
||||||
|
if (myWin != null)
|
||||||
|
{
|
||||||
|
myWin.Activate();
|
||||||
|
myWin.replayNetwork(TheName, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2830,7 +2830,7 @@ namespace EduNetworkBuilder
|
|||||||
#endregion Random Map Stuff
|
#endregion Random Map Stuff
|
||||||
|
|
||||||
#region network replay stuff
|
#region network replay stuff
|
||||||
private void replayNetwork(string NetworkName, int delay_between)
|
public void replayNetwork(string NetworkName, int delay_between)
|
||||||
{
|
{
|
||||||
//Prepare for replay
|
//Prepare for replay
|
||||||
// reset to original map
|
// reset to original map
|
||||||
|
Loading…
Reference in New Issue
Block a user