private void userGroupManagementToolStripMenuItem1_Click(object sender, EventArgs e) { if (userGrpMngForm == null || userGrpMngForm.IsDisposed) { userGrpMngForm = new UserGrpMngForm(this); userGrpMngForm.MdiParent = this; userGrpMngForm.WindowState = FormWindowState.Normal; userGrpMngForm.WindowState = FormWindowState.Maximized; userGrpMngForm.Show(); userGrpMngForm.Focus(); } else { userGrpMngForm.rework(); userGrpMngForm.Focus(); } }
private void userGroupManagementToolStripMenuItem_Click(object sender, EventArgs e) { try { if (userGrpMngForm == null || userGrpMngForm.IsDisposed) { userGrpMngForm = new UserGrpMngForm(this); //A0.02 userGrpMngForm.MdiParent = this; userGrpMngForm.Show(); userGrpMngForm.Focus(); } else { userGrpMngForm.rework(); userGrpMngForm.Focus(); } } catch (Exception ex) { logger.Error(ex, "Exception:"); } }