示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int id          = Int32.Parse(idTextBox.Text);
            int newQuantity = Int32.Parse(quantityTextBox.Text);

            inventory.restock(id, newQuantity);
            inventory.displayInventory(itemList);
            Close();
        }