private void button2_Click(object sender, EventArgs e) { add_inventory a = new add_inventory(); string name = inventoryName.Text; a.showdi(ref name); inventoryName.Text = name; }
private void المخازندToolStripMenuItem_Click(object sender, EventArgs e) { if (addInventory == null) { addInventory = new add_inventory(); addInventory.MdiParent = this; addInventory.FormClosed += new FormClosedEventHandler(addInventory_FormClosed); addInventory.Show(); } else { addInventory.Activate(); } }
void addInventory_FormClosed(object sender, FormClosedEventArgs e) { //throw new NotImplementedException(); addInventory = null; }
private void button2_Click(object sender, EventArgs e) { add_inventory f34 = new add_inventory(); f34.Show(); }