Network returns all the rectangle shapes on the map. For use on the net-test editor
This commit is contained in:
parent
bd300d9c10
commit
efa99fc719
@ -1167,6 +1167,20 @@ namespace EduNetworkBuilder
|
||||
}
|
||||
return Descriptions;
|
||||
}
|
||||
/// <summary>
|
||||
/// This is used by the NetTest editor to list all the shape names we can lock a device into
|
||||
/// </summary>
|
||||
/// <returns>A list of the names of all the rectangles</returns>
|
||||
public List<string> RectangleNames()
|
||||
{
|
||||
List<string> Descriptions = new List<string>();
|
||||
foreach (NetShape NS in Shapes)
|
||||
{
|
||||
if(NS.MyShape == NetShapeType.rectangle)
|
||||
Descriptions.Add(NS.Name);
|
||||
}
|
||||
return Descriptions;
|
||||
}
|
||||
|
||||
void KillAllExtraWindows(bool EvenRTF=false)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user