private void ManagementLoaded(object sender, RoutedEventArgs e) { try { mg = new ManagementModel(); lv_itemsCategory.ItemsSource = mg.GetAllCategory(); lv_menu.ItemsSource = mg.GetAllMenu(); lv_menuOption.ItemsSource = mg.GetMenuOptions(); lv_ingredientCategory.ItemsSource = mg.GetAllIngredientCat(); } catch (Exception ex) { } }
private void onCloseCUMenu(object sender, DialogOpenedEventArgs eventArgs) { lv_menu.ItemsSource = mg.GetAllMenu(); }