Пример #1
0
        private void btnadduser_Click(object sender, EventArgs e)
        {
            frmAddUser frm = frmAddUser.GetSingleton();

            frm.MdiParent = this.MdiParent;
            frm.Show();
        }
Пример #2
0
 public static frmAddUser GetSingleton()
 {
     if (frm == null || frm.IsDisposed)
     // if (frm == null)
     {
         frm = new frmAddUser();
     }
     frm.Activate();
     return(frm);
 }