private void عمالالمغسلةToolStripMenuItem_Click(object sender, EventArgs e) { if (wm == null) { wm = new WM_Worker(); wm.MdiParent = this; wm.FormClosed += new FormClosedEventHandler(wm_FormClosed); wm.Show(); } else { wm.Activate(); } }
void wm_FormClosed(object sender, FormClosedEventArgs e) { //throw new NotImplementedException(); wm = null; }