コード例 #1
0
        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;
        }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 void addInventory_FormClosed(object sender, FormClosedEventArgs e)
 {
     //throw new NotImplementedException();
     addInventory = null;
 }
コード例 #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            add_inventory f34 = new add_inventory();

            f34.Show();
        }