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

            OnPropertyChanged(nameof(Food));
        }