private void اصدارأمرشغلToolStripMenuItem_Click(object sender, EventArgs e) { if (order == null) { order = new wm_operating_order(); order.MdiParent = this; order.FormClosed += new FormClosedEventHandler(order_FormClosed); order.Show(); } else { order.Activate(); } }
void order_FormClosed(object sender, FormClosedEventArgs e) { order = null; //throw new NotImplementedException(); }