private void OpenProfileForm() { if (frmProfile == null) { frmProfile = new frmProfile(); frmProfile.CloseAct = () => frmProfile = null; frmProfile.Show(dockMgr, DockState.DockRight); } else { frmProfile.Activate(); } }
private void OpenProfileForm() { if (frmProfile == null) { frmProfile = new frmProfile(); frmProfile.PropertyChangeAct = () => { if (frmTable != null) { frmTable.ApplyProfile(); } }; frmProfile.CloseAct = () => frmProfile = null; frmProfile.Show(dockMgr, DockState.DockRight); } else { frmProfile.Activate(); } }