if nothing selected, clear out values

This commit is contained in:
Tim Young 2018-03-01 08:11:09 -06:00
parent ce6e40e099
commit 1a83ff7ce1

View File

@ -83,6 +83,18 @@ namespace EduNetworkBuilder
cbLineColor.Text = ShapeForEditing.LineColor.Name;
cbShape.Text = ShapeForEditing.MyShape.ToString();
}
else
{
{
tbX.Text = "0";
tbY.Text = "0";
tbHeight.Text = "0";
tbWidth.Text = "0";
cbFillColor.Text = "Empty";
cbLineColor.Text = "Empty";
cbShape.Text = "None";
}
}
}
private void btnDone_Click(object sender, EventArgs e)