コード例 #1
0
        public static MDIChildFormEmployees CreateOrSelectForm(Form mdiParent)
        {
            if (mdiForm == null)
            {
                mdiForm = new MDIChildFormEmployees();
            }

            mdiForm.MdiParent = mdiParent;
            mdiForm.Show();
            mdiForm.BringToFront();

            return(mdiForm);
        }
コード例 #2
0
 private void MDIChildFormEmployees_FormClosed(object sender, FormClosedEventArgs e)
 {
     mdiForm = null;
 }
コード例 #3
0
 private void MiEmployees_Click(object sender, EventArgs e)
 {
     MDIChildFormEmployees.CreateOrSelectForm(this);
 }