Cannot drag a tree
This commit is contained in:
parent
dc11048262
commit
ef54588253
@ -527,6 +527,7 @@ namespace EduNetworkBuilder
|
|||||||
if (tItem is NetworkDevice)
|
if (tItem is NetworkDevice)
|
||||||
{
|
{
|
||||||
tDevice = (NetworkDevice)tItem;
|
tDevice = (NetworkDevice)tItem;
|
||||||
|
if (tDevice.GetNetType() == NetworkComponentType.tree) continue; //Cannot select trees
|
||||||
int tsize = tDevice.Size;
|
int tsize = tDevice.Size;
|
||||||
tPoint = tDevice.myLocation();
|
tPoint = tDevice.myLocation();
|
||||||
if (tPoint.X + tsize >= area.X && tPoint.Y +tsize >= area.Y)
|
if (tPoint.X + tsize >= area.X && tPoint.Y +tsize >= area.Y)
|
||||||
|
Loading…
Reference in New Issue
Block a user