private void ارتجاعرصيدمنمخزنفرعىToolStripMenuItem_Click(object sender, EventArgs e) { if (return_category_from_inventory == null) { return_category_from_inventory = new return_category_from_inventory(); return_category_from_inventory.MdiParent = this; return_category_from_inventory.FormClosed += new FormClosedEventHandler(return_category_from_inventory_FormClosed); return_category_from_inventory.Show(); } else { return_category_from_inventory.Activate(); } }
void return_category_from_inventory_FormClosed(object sender, FormClosedEventArgs e) { //throw new NotImplementedException(); return_category_from_inventory = null; }