recognize if we click on a link
This commit is contained in:
@ -501,6 +501,21 @@ namespace EduNetworkBuilder
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public NetworkLink LinkAtPosition(Point NetworkLocation)
|
||||
{
|
||||
NetworkLink tLink;
|
||||
foreach (NetworkComponent tItem in NetComponents)
|
||||
{
|
||||
if (tItem is NetworkLink)
|
||||
{
|
||||
tLink = (NetworkLink)tItem;
|
||||
if (tLink.AtLocation(NetworkLocation))
|
||||
return tLink;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public List<NetworkDevice> DevicesInRectangle(Rectangle area)
|
||||
{
|
||||
NetworkDevice tDevice;
|
||||
|
Reference in New Issue
Block a user