void initFormOperations() { dg_AllKitchenItems.Items.Clear(); dg_AllLowInventoryItems.Items.Clear(); foreach (tbl_KitchenInventory item in KitchenInventory.getAll()) { dg_AllKitchenItems.Items.Add(item); } foreach (tbl_KitchenInventory item in KitchenInventory.getLowInventoryItem()) { dg_AllLowInventoryItems.Items.Add(item); } }
void initFormOperations() { dg_AllInventoryItems.ItemsSource = KitchenInventory.getAll(); var categoriesList = FoodItem.getAll(); foreach (tbl_FoodItem item1 in categoriesList) { cb_AllFoodItems.ItemsSource = categoriesList; cb_AllFoodItems.DisplayMemberPath = "Name"; cb_AllFoodItems.SelectedValuePath = "Id"; } var categoriesList1 = Deal.getAll(); foreach (tbl_Deal item1 in categoriesList1) { cb_AllDeals.ItemsSource = categoriesList1; cb_AllDeals.DisplayMemberPath = "Name"; cb_AllDeals.SelectedValuePath = "Id"; } }
void initFormOperations() { dg_AllKitchenInventory.ItemsSource = null; dg_AllKitchenInventory.ItemsSource = KitchenInventory.getAll(); UpdateLayout(); }