Move the dragsize out so we can use it elsewhere.

This commit is contained in:
Tim Young 2018-02-27 07:27:36 -06:00
parent cb3a29b4ea
commit c75f1407f9

View File

@ -17,6 +17,7 @@ namespace EduNetworkBuilder
public Rectangle InArea; public Rectangle InArea;
public Color LineColor = Color.Empty; public Color LineColor = Color.Empty;
public Color FillColor = Color.Empty; public Color FillColor = Color.Empty;
int DragSize = 15;
public NetShape(NetShapeType What, Rectangle Where, Color color) public NetShape(NetShapeType What, Rectangle Where, Color color)
{ {
@ -55,7 +56,7 @@ namespace EduNetworkBuilder
} }
if(InShapeEditMode) if(InShapeEditMode)
{ {
int sz = 15; int sz = DragSize;
Color edgeColor = Color.Black; Color edgeColor = Color.Black;
if (FillColor == Color.Black) edgeColor = Color.White; if (FillColor == Color.Black) edgeColor = Color.White;
coloredBrush = new SolidBrush(edgeColor); coloredBrush = new SolidBrush(edgeColor);