private void registroDeAlumnosToolStripMenuItem_Click(object sender, EventArgs e) { if (fa == null) { fa = new FormAlumnos(); fa.MdiParent = this; fa.FormClosed += new FormClosedEventHandler(fa_FormClosed); fa.Show(); if (d != null) { d.Close(); } if (cf != null) { cf.Close(); } if (f1 != null) { f1.Close(); } if (ac != null) { ac.Close(); } if (acerca != null) { acerca.Close(); } } else { fa.Activate(); } }
public void fa_FormClosed(object sender, EventArgs e) { fa = null; }