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!"; } }
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!"; } } }