private void gestionarCostosToolStripMenuItem_Click(object sender, EventArgs e) { if (formGestionCosto == null) { formGestionCosto = new FormGestionCosto(); formGestionCosto.MdiParent = this; formGestionCosto.FormClosed += new FormClosedEventHandler(formCosto_FormClosed); formGestionCosto.Show(); } else { formGestionCosto.Activate(); } }
private void formCosto_FormClosed(object sender, FormClosedEventArgs e) { formGestionCosto = null; }