コード例 #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);
            }
        }
コード例 #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();
        }