Get invisible Network to complet auto dhcp request at beginning

This commit is contained in:
2017-08-16 10:47:08 -05:00
parent 04782b2456
commit 00f886080f
3 changed files with 67 additions and 4 deletions

View File

@ -410,8 +410,23 @@ namespace EduNetworkBuilder
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
if (myWin == null) return null;
if (myWin.GameRandomGen == null) return null;
return myWin.myNetwork;
return myWin.GetNetwork();
}
public static void RegisterInvisibleNetwork(Network ToRegister)
{
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
if (myWin == null) return;
myWin.RegisterInisibleNet(ToRegister);
}
public static void UnregisterInvisibleNetwork()
{
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
if (myWin == null) return;
myWin.UnregisterInvisibleNet();
}
public static void MarkToUpdate()
{
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];