private void OpenPeopertyForm() { if (frmProperty == null) { frmProperty = new frmProperty(); frmProperty.CloseAct = () => frmProperty = null; frmProperty.Show(dockMgr, DockState.DockRight); } else { frmProperty.Activate(); } }
private void OpenPeopertyForm() { if (frmProperty == null) { frmProperty = new frmProperty(); frmProperty.CloseAct = () => frmProperty = null; frmProperty.Show(dockMgr, DockState.DockRight); if (frmTable != null) { frmProperty.SetObject(frmTable.GetSelectedObject()); } } else { frmProperty.Activate(); } }