Example #1
0
 public FoodViewModel(FoodViewModel food)
 {
     this.food = new Food(food.Name_food, food.Image_path, food.Info_food, food.List_ingridient);
 }
Example #2
0
 public AddViewModel()
 {
     _food = new FoodViewModel(new Models.Food());
 }
Example #3
0
 private void Execute_Delete(object o)
 {
     // Question();
     FoodsList.Remove(_select_Item);
     _select_Item = null;
 }
Example #4
0
        public EditViewModel(FoodViewModel food)
        {
            _food = new FoodViewModel(food);

            OnPropertyChanged(nameof(Food));
        }