void ep_FormClosed(object sender, FormClosedEventArgs e) { ep = null; }
private void evaluateAnEmployeePerformanceToolStripMenuItem_Click(object sender, EventArgs e) { if (ep == null) { ep = new EvaluatePerformance(adminlogin); ep.MdiParent = this; ep.FormClosed += ep_FormClosed; ep.Show(); } else { ep.Activate(); } }