Open network if it does not have a replay yet.
This commit is contained in:
parent
25cc1f720a
commit
7bf1b99e03
@ -523,11 +523,19 @@ namespace EduNetworkBuilder
|
|||||||
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
||||||
if (myWin != null)
|
if (myWin != null)
|
||||||
{
|
{
|
||||||
//myWin.Activate();
|
if (oursettings.HasReplay(TheName))
|
||||||
myWin.replayNetwork(TheName, 1);
|
{
|
||||||
//Return back to the listbox window
|
//myWin.Activate();
|
||||||
Visible = true;
|
myWin.replayNetwork(TheName, 1);
|
||||||
Activate();
|
//Return back to the listbox window
|
||||||
|
Visible = true;
|
||||||
|
Activate();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (lbWindowData.SelectedItem != null)
|
||||||
|
NB.LoadNetworkFromResource(TheName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user