private void EraseFromCheck(object obj) { Dishes temp = CheckSelectedItem; CheckSelectedItem = null; CheckMenuList.Remove(temp); GetSum(); Check.Dishes = CheckMenuList; OnPropertyChanged(new PropertyChangedEventArgs("CheckMenuList")); OnPropertyChanged(new PropertyChangedEventArgs("Check")); Update?.Invoke(obj, null); }
private void AddDishToCHek(object obj) { if (SelectedMenuDish == null) { return; } CheckMenuList.Add(SelectedMenuDish); GetSum(); Check.Dishes = CheckMenuList; OnPropertyChanged(new PropertyChangedEventArgs("CheckMenuList")); OnPropertyChanged(new PropertyChangedEventArgs("Check")); Update?.Invoke(obj, null); }