NetTestEditor lets us lock to a rectangle shape defined on the network.

This commit is contained in:
2018-03-06 15:25:24 -06:00
parent ef658c4a58
commit 79304fae25
3 changed files with 35 additions and 10 deletions

View File

@ -1027,8 +1027,19 @@ namespace EduNetworkBuilder
{
if (nt.sHost == host)
{
if (WhatToCheck == nt.TheTest && (dest == "" || dest == nt.dHost))
return true;
if (WhatToCheck == nt.TheTest)
{
if(nt.TheTest == NetTestType.LockLocation)
{
if(dest == "" && (nt.dHost == "" || nt.dHost == "--")) //It cannot be moved at all
{
return true;
}
return false;
}
else if (dest == "" || dest == nt.dHost)
return true;
}
}
}
return false;