Network returns all the rectangle shapes on the map. For use on the net-test editor

This commit is contained in:
Tim Young 2018-03-06 14:37:37 -06:00
parent bd300d9c10
commit efa99fc719
1 changed files with 14 additions and 0 deletions

View File

@ -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)
{