Esempio n. 1
0
        public static MDIChildFormCustomers CreateOrSelectForm(Form mdiParent)
        {
            if (mdiForm == null)
            {
                mdiForm = new MDIChildFormCustomers();
            }

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

            return(mdiForm);
        }
Esempio n. 2
0
 private void MiCustomers_Click(object sender, EventArgs e)
 {
     MDIChildFormCustomers.CreateOrSelectForm(this);
 }
Esempio n. 3
0
 private void MDIChildFormCustomers_FormClosed(object sender, FormClosedEventArgs e)
 {
     mdiForm = null;
 }