Open network if it does not have a replay yet.
This commit is contained in:
parent
25cc1f720a
commit
7bf1b99e03
@ -522,6 +522,8 @@ namespace EduNetworkBuilder
|
|||||||
//Visible = false;
|
//Visible = false;
|
||||||
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
|
||||||
if (myWin != null)
|
if (myWin != null)
|
||||||
|
{
|
||||||
|
if (oursettings.HasReplay(TheName))
|
||||||
{
|
{
|
||||||
//myWin.Activate();
|
//myWin.Activate();
|
||||||
myWin.replayNetwork(TheName, 1);
|
myWin.replayNetwork(TheName, 1);
|
||||||
@ -529,6 +531,12 @@ namespace EduNetworkBuilder
|
|||||||
Visible = true;
|
Visible = true;
|
||||||
Activate();
|
Activate();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (lbWindowData.SelectedItem != null)
|
||||||
|
NB.LoadNetworkFromResource(TheName);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else Close();
|
else Close();
|
||||||
|
Loading…
Reference in New Issue
Block a user