Exemplo n.º 1
0
 public MyDailyDietViewModel(User currentUser)
 {
     CurrentUser  = currentUser;
     currentModel = new MyDailyDietModel();
     AddingFood   = new AddFoodCommand(this);
     Date         = DateTime.Today;
     GetUserMealsAccordingDate();
     CalcToalNutrients();
     GetNutrientsGoal();
     CalcRemainingNutrient();
 }
Exemplo n.º 2
0
 private void OnPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     AddFoodCommand.RaiseCanExecuteChanged();
 }