Able to lock light and microwave to keep from deleting them
This commit is contained in:
parent
d128340987
commit
8c2c1c4109
@ -31,7 +31,7 @@ namespace EduNetworkBuilder
|
|||||||
ToEdit = new NetTest(OrigTest);
|
ToEdit = new NetTest(OrigTest);
|
||||||
|
|
||||||
Network mynet = NB.GetNetwork();
|
Network mynet = NB.GetNetwork();
|
||||||
HostNames.AddRange(mynet.GetHostnames());
|
HostNames.AddRange(mynet.GetHostnames(true));
|
||||||
Networks.AddRange(mynet.GetSubnets());
|
Networks.AddRange(mynet.GetSubnets());
|
||||||
Broadcasts.AddRange(mynet.GetBroadcasts());
|
Broadcasts.AddRange(mynet.GetBroadcasts());
|
||||||
UpdateForm();
|
UpdateForm();
|
||||||
|
@ -944,7 +944,7 @@ namespace EduNetworkBuilder
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<string> GetHostnames()
|
public List<string> GetHostnames(bool EvenNonNetworked = false)
|
||||||
{
|
{
|
||||||
List<string> tList = new List<string>();
|
List<string> tList = new List<string>();
|
||||||
NetworkDevice ND;
|
NetworkDevice ND;
|
||||||
@ -953,7 +953,7 @@ namespace EduNetworkBuilder
|
|||||||
if(NB.GetComponentType(NC) == GeneralComponentType.device)
|
if(NB.GetComponentType(NC) == GeneralComponentType.device)
|
||||||
{
|
{
|
||||||
ND = (NetworkDevice)NC;
|
ND = (NetworkDevice)NC;
|
||||||
if (ND.GetNetType() == NetworkComponentType.microwave || ND.GetNetType() == NetworkComponentType.fluorescent)
|
if (!EvenNonNetworked && (ND.GetNetType() == NetworkComponentType.microwave || ND.GetNetType() == NetworkComponentType.fluorescent))
|
||||||
continue;
|
continue;
|
||||||
tList.Add(ND.hostname);
|
tList.Add(ND.hostname);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user