Toggle viewing of drag areas on shapes when shape selector is pressed.

This commit is contained in:
2018-02-27 07:25:32 -06:00
parent d6a2a62c9b
commit cb3a29b4ea
3 changed files with 13 additions and 4 deletions

View File

@ -70,6 +70,7 @@ namespace EduNetworkBuilder
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 bool IsRandomNetwork = false;
public bool InShapeEditMode = false;
private List<AnimationClass> Animations = new List<AnimationClass>();
@ -800,7 +801,7 @@ namespace EduNetworkBuilder
Graphics.FromImage(TheNetImage).FillRectangle(theBrush, new Rectangle(0,0, TheNetImage.Width, TheNetImage.Height));
//re-generate the image
foreach (NetShape shape in Shapes)
shape.Draw(TheNetImage); //Draw any shapes
shape.Draw(TheNetImage, InShapeEditMode); //Draw any shapes
//Do all the links first
foreach (NetworkComponent NC in NetComponents)
{