private void EditShapeProperties(Shape shape) { if (shape != null) { EditShapePropertiesForm frmEditShapePropertiesForm = new EditShapePropertiesForm(shape); if (frmEditShapePropertiesForm.ShowDialog() == DialogResult.OK) { LoadShapeProperties(shape); } } }