Ejemplo n.º 1
0
 private void btnNuevo_Click(object sender, EventArgs e)
 {
     if (frmNew == null)
     {
         frmNew             = new frmStudentNew();
         frmNew.MdiParent   = this.MdiParent;
         frmNew.Dock        = DockStyle.Fill;
         frmNew.FormClosed += new FormClosedEventHandler(studentnew_FormClosed);
         frmNew.Show();
     }
     else
     {
         frmNew.Activate();
     }
 }
Ejemplo n.º 2
0
 private void studentnew_FormClosed(object sender, EventArgs e)
 {
     frmNew = null;
 }