diff --git a/EduNetworkBuilder/ListBoxWindow.cs b/EduNetworkBuilder/ListBoxWindow.cs index 0a40c7f..eae5f73 100644 --- a/EduNetworkBuilder/ListBoxWindow.cs +++ b/EduNetworkBuilder/ListBoxWindow.cs @@ -523,11 +523,19 @@ namespace EduNetworkBuilder BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"]; if (myWin != null) { - //myWin.Activate(); - myWin.replayNetwork(TheName, 1); - //Return back to the listbox window - Visible = true; - Activate(); + if (oursettings.HasReplay(TheName)) + { + //myWin.Activate(); + myWin.replayNetwork(TheName, 1); + //Return back to the listbox window + Visible = true; + Activate(); + } + else + { + if (lbWindowData.SelectedItem != null) + NB.LoadNetworkFromResource(TheName); + } } } }