private void aboutSystemToolStripMenuItem_Click(object sender, EventArgs e) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } Form f = Application.OpenForms["frmCommentList"]; if (f == null) { frmCommentList fes = new frmCommentList(); fes.MdiParent = this; fes.Show(); } else { MessageBox.Show("Comment List Form is Already Open.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void reOpenCommentListForm() { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } Form f = Application.OpenForms["frmCommentList"]; if (f == null) { frmCommentList fec = new frmCommentList(); fec.MdiParent = this.MdiParent; fec.Show(); } else { MessageBox.Show("Comment List Form is Already Open.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } Close(); }