private void editAnEmployeeInformationToolStripMenuItem_Click(object sender, EventArgs e) { if (uei == null) { uei = new updateEmployeeInformation(); uei.MdiParent = this; uei.FormClosed += uei_FormClosed; uei.Show(); } else { uei.Activate(); } }
void uei_FormClosed(object sender, FormClosedEventArgs e) { uei = null; }