Ejemplo 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";
        }
Ejemplo 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";
        }
Ejemplo 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();
 }