private void تعقيمالاغطيةToolStripMenuItem_Click(object sender, EventArgs e) { if (cpp == null) { cpp = new coverPreperations(); cpp.MdiParent = this; cpp.FormClosed += new FormClosedEventHandler(cpp_FormClosed); cpp.Show(); } else { cpp.Activate(); } }
void cpp_FormClosed(object sender, FormClosedEventArgs e) { //throw new NotImplementedException(); cpp = null; }