Esempio n. 1
0
        // Handles pressing of edit inventory button
        private void editInventoryButton_Click(object sender, EventArgs e)
        {
            // Reset datatable to display all inventory items
            queryReturnValue = inventoryTableAdapter.Fill(pOSDataSet.Inventory);
            queryLabel.Text = queryReturnValue + " item(s) found";

            // Call editInventory window
            editInventory window = new editInventory(this);
            window.ShowDialog();

            // Reset datatable to display all inventory items upon return from editInventory
            queryReturnValue = inventoryTableAdapter.Fill(pOSDataSet.Inventory);
            queryLabel.Text = queryReturnValue + " item(s) found";
        }
Esempio n. 2
0
        // Handles pressing of edit inventory button
        private void editInventoryButton_Click(object sender, EventArgs e)
        {
            // Reset datatable to display all inventory items
            queryReturnValue = inventoryTableAdapter.Fill(pOSDataSet.Inventory);
            queryLabel.Text  = queryReturnValue + " item(s) found";

            // Call editInventory window
            editInventory window = new editInventory(this);

            window.ShowDialog();

            // Reset datatable to display all inventory items upon return from editInventory
            queryReturnValue = inventoryTableAdapter.Fill(pOSDataSet.Inventory);
            queryLabel.Text  = queryReturnValue + " item(s) found";
        }
Esempio n. 3
0
 // Opens up the window to edit inventory on hand
 private void editInventoryButton_Click(object sender, EventArgs e)
 {
     editInventory window = new editInventory();
     window.ShowDialog();
 }