Example #1
0
 public MenuWindow(Menu menu)
 {
     CurrentMenu = MenuService.GetMenu(menu.Id);
     InitializeComponent();
     TextBlockMarginProfit.Content = (CurrentMenu.ProfitMargin * 100).ToString() + " %";
     DataGridDishes.ItemsSource    = MenuService.GetDishes(menu.Id);
 }
Example #2
0
 private void UpdateData()
 {
     CurrentMenu = MenuService.GetMenu(CurrentMenu.Id);
     TextBlockMarginProfit.Content = CurrentMenu.ProfitMargin.ToString();
     DataGridDishes.ItemsSource    = MenuService.GetDishes(CurrentMenu.Id);
 }