Ein Recipe ordnet einem SalesItem eine Rezeptur zu. Eine Rezeptur besteht hierbei aus einer Liste von RecipeItems.
상속: DomainEntity
예제 #1
0
 void OnRecipeChanged(Recipe recipe)
 {
     var viewmodel = (from vm in AllRecipes where vm.Id == recipe.Id select vm).FirstOrDefault();
     if (viewmodel == null)
     {
         viewmodel = new SingleRecipeViewModel(recipe);
         AllRecipes.Add(viewmodel);
     }
     else
     {
         viewmodel.ExchangeData(recipe);
     }
     OnPropertyChanged("ItemSelected");
     OnPropertyChanged("ItemsSelected");
 }
예제 #2
0
 public SingleRecipeViewModel(Recipe recipe)
 {
     _recipe = recipe;
     base.DisplayName = _recipe.Plu.ToString();
 }
예제 #3
0
 public EditRecipe(Recipe recipe)
 {
     Recipe = recipe;
 }
예제 #4
0
 public void ExchangeData(Recipe recipe)
 {
     _recipe = recipe;
 }