Пример #1
0
 private void tsMenuGuardians_Click(object sender, EventArgs e)
 {
     if (guardianReg == null)
     {
         guardianReg             = new frmGuardianRegistration();
         guardianReg.MdiParent   = this;
         guardianReg.FormClosed += new FormClosedEventHandler(guardianReg_FormClosed);
         guardianReg.Show();
     }
     else
     {
         guardianReg.Activate();
         guardianReg.WindowState = FormWindowState.Normal;
     }
 }
Пример #2
0
 void guardianReg_FormClosed(object sender, FormClosedEventArgs e)
 {
     guardianReg = null;
 }