private void gestionDepartamentoToolStripMenuItem_Click(object sender, EventArgs e) { if (formDepto == null) { formDepto = new FormGestionDepartamento(); formDepto.MdiParent = this; formDepto.FormClosed += new FormClosedEventHandler(formDepto_FormClosed); formDepto.Show(); } else { formDepto.Activate(); } }
private void formDepto_FormClosed(object sender, FormClosedEventArgs e) { formDepto = null; }