public static MDIChildFormEmployees CreateOrSelectForm(Form mdiParent)
        {
            if (mdiForm == null)
            {
                mdiForm = new MDIChildFormEmployees();
            }

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

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