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
1 changed files with 2 additions and 1 deletions

View File

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