Finish locking items in location. Can no longer move them if they are locked.

This commit is contained in:
2018-03-01 17:25:07 -06:00
parent 1ada144423
commit 56b680e057
3 changed files with 18 additions and 7 deletions

View File

@ -575,7 +575,7 @@ namespace EduNetworkBuilder
if (tItem is NetworkDevice)
{
tDevice = (NetworkDevice)tItem;
if (tDevice.GetNetType() == NetworkComponentType.tree) continue; //Cannot select trees
if (tDevice.IsLockedInLocation()) continue; //some items cannot be moved
int tsize = tDevice.Size;
tPoint = tDevice.myLocation();
if (tPoint.X + tsize >= area.X && tPoint.Y +tsize >= area.Y)