Ejemplo n.º 1
0
 private void institutoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (formInstituto == null)
     {
         formInstituto             = new Instituto();
         formInstituto.MdiParent   = this;
         formInstituto.FormClosed += new FormClosedEventHandler(CerrarFormaInsti);
         formInstituto.Show();
         formInstituto.WindowState = FormWindowState.Maximized;
     }
     else
     {
         try
         {
             formInstituto.Activate();
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 2
0
 private void CerrarFormaInsti(object sender, FormClosedEventArgs e)
 {
     formInstituto = null;
 }