private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { ShapePropertiesDialog d = new ShapePropertiesDialog(); d.propertyController.Project = project; if (display.SelectedShapes.Count == 0) d.propertyController.SetObject(0, display.Diagram); else d.propertyController.SetObjects(0, display.SelectedShapes); d.Show(); }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { ShapePropertiesDialog d = new ShapePropertiesDialog(); d.propertyController.Project = project; if (display.SelectedShapes.Count == 0) { d.propertyController.SetObject(0, display.Diagram); } else { d.propertyController.SetObjects(0, display.SelectedShapes); } d.Show(this); }