Starting to add the initial shapelist edit window
This commit is contained in:
@ -68,7 +68,7 @@ namespace EduNetworkBuilder
|
||||
private List<Image> PacketImages = new List<Image>();
|
||||
private List<PingTestStatus> PingTestStats = new List<PingTestStatus>();
|
||||
private List<string> BrokenItems = new List<string>();
|
||||
private List<NetShape> Shapes = new List<NetShape>(); //For storing simple shapes which are drawn on the network
|
||||
public List<NetShape> Shapes = new List<NetShape>(); //For storing simple shapes which are drawn on the network
|
||||
public bool IsRandomNetwork = false;
|
||||
public bool InShapeEditMode = false;
|
||||
|
||||
@ -78,6 +78,8 @@ namespace EduNetworkBuilder
|
||||
/// WhatFrom: If we are launched from a homework, we remember it here.
|
||||
/// </summary>
|
||||
public SchoolworkClass WhatFrom = null;
|
||||
public List<string> ColorNames = new List<string>() { "Black", "White", "Green", "LightGreen", "Blue", "LightBlue", "Grey", "Brown", "SaddleBrown", "Empty" };
|
||||
|
||||
|
||||
public Network(string Name)
|
||||
{
|
||||
@ -1156,6 +1158,16 @@ namespace EduNetworkBuilder
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<string> ShapeDescriptions()
|
||||
{
|
||||
List<string> Descriptions = new List<string>();
|
||||
foreach(NetShape NS in Shapes)
|
||||
{
|
||||
Descriptions.Add(NS.ToString());
|
||||
}
|
||||
return Descriptions;
|
||||
}
|
||||
|
||||
void KillAllExtraWindows(bool EvenRTF=false)
|
||||
{
|
||||
for(int i = Application.OpenForms.Count -1; i >=0; i--)
|
||||
|
Reference in New Issue
Block a user