private void pacienteToolStripMenuItem_Click(object sender, EventArgs e) { if (ForPaciente == null) { ForPaciente = new FrmPaciente(); ForPaciente.MdiParent = this; ForPaciente.FormClosed += new FormClosedEventHandler(CerrarForma); ForPaciente.Show(); } else { ForPaciente.Activate(); } }
void CerrarForma(object sender, FormClosedEventArgs e) { ForPaciente = null; }