public FrmProperty(Object ob) { self = this; InitializeComponent(); propertyGrid1.SelectedObject = ob; this.Disposed += new EventHandler(FrmProperty_Disposed); LeCanvas.SelectedShapeChanged += new LeCanvas.SelectedShapeChangedHandler(LeCanvas_SelectedShapeChanged); }
private void menuProp_Click(object sender, EventArgs e) { if (menuProp.Checked == true) { propWnd.Hide(); menuProp.Checked = false; } else { if (propWnd == null) { propWnd = new FrmProperty(null); } propWnd.Show(); menuProp.Checked = true; } }
internal void ClearPropertySelected() { menuProp.Checked = false; propWnd = null; }