Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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();
        }