private void NominaToolStripMenuItem_Click(object sender, EventArgs e) { //NOMINA if (frm_nominaEncab == null) { frm_nominaEncab = new nominaEncab(); frm_nominaEncab.MdiParent = this; frm_nominaEncab.FormClosed += new FormClosedEventHandler(frm_nominaEncab_FormClosed); frm_nominaEncab.Show(); } else { frm_nominaEncab.Activate(); } }
private void frm_nominaEncab_FormClosed(Object sender, FormClosedEventArgs e) { frm_nominaEncab = null; }