예제 #1
0
        private void BtnAddInventoryItem_Click(object sender, RoutedEventArgs e)
        {
            frmInventoryDetails window = new frmInventoryDetails(_inventoryManager, _vendorManager);

            if (window.ShowDialog() == true)
            {
                populateInventoryList();
                lblStatusMessage.Content = "New Inventory Item Saved!";
            }
        }
예제 #2
0
        private void showPopulatedInventoryDetailWindow()
        {
            InventoryItem item = (InventoryItem)dgInventoryList.SelectedItem;

            if (item != null)
            {
                frmInventoryDetails window = new frmInventoryDetails(item, _inventoryManager, _vendorManager);
                if (window.ShowDialog() == true)
                {
                    populateInventoryList();
                    lblStatusMessage.Content = "Changes to Inventory Item: " + item.ItemName + ", Saved!";
                }
            }
        }