public CommandsAvailabilityProducts(Application app, ListCategoriesCommodity availabilityProducts, ListConsumptionProducts consumptionProducts, AvailableRecipes availableRecipes)
 {
     _app = app;
     _availabilityProducts = availabilityProducts;
     _consumptionProducts  = consumptionProducts;
     _availableRecipes     = availableRecipes;
 }
Beispiel #2
0
 public ClearAvailabilityProducts(ListCategoriesCommodity availabilityProducts, ListCategoriesCommodity necessaryProducts, ListConsumptionProducts consumptionProducts, AvailableRecipes availableRecipes)
 {
     _availabilityProducts = availabilityProducts;
     _necessaryProducts    = necessaryProducts;
     _consumptionProducts  = consumptionProducts;
     _availableRecipes     = availableRecipes;
 }
 public DisplayRecipes(ListCategoriesRecipes listCategoriesRecipes, AvailableRecipes availableRecipes,
                       ListCategoriesCommodity availabilityProducts, ListCategoriesCommodity necessaryProducts)
 {
     _listCategoriesRecipes = listCategoriesRecipes;
     _availableRecipes      = availableRecipes;
     _availabilityProducts  = availabilityProducts;
     _necessaryProducts     = necessaryProducts;
 }
        public RecipeListDesignViewModel()
        {
            AvailableRecipes.Add(TestData.GetTestRecipe("Eierspeis"));
            AvailableRecipes.Add(TestData.GetTestRecipe("Schnitzel"));
            AvailableRecipes.Add(TestData.GetTestRecipe("Curry"));
            AvailableRecipes.Add(TestData.GetTestRecipe("Brathendl"));
            AvailableRecipes.Add(TestData.GetTestRecipe("Pancakes"));

            AvailableIngredients.Add(new FilterObject(TestData.GetTestIngredient("Mehl")));
            AvailableIngredients.Add(new FilterObject(TestData.GetTestIngredient("Milch")));
            AvailableIngredients.Add(new FilterObject(TestData.GetTestIngredient("Eier")));

            SelectedIngredients.Add(AvailableIngredients[1]);
            SelectedIngredients.Add(AvailableIngredients[2]);

            AvailableCategories.AddRange(TestData.GetTestFilterCategories());

            SelectedCategory = AvailableCategories[0];

            SearchByRecipe     = false;
            SearchByIngredient = true;
        }
 public ChangeAvailabilityProducts(ListCategoriesCommodity availabilityProducts, ListConsumptionProducts consumptionProducts, AvailableRecipes availableRecipes)
 {
     _availabilityProducts = availabilityProducts;
     _consumptionProducts  = consumptionProducts;
     _availableRecipes     = availableRecipes;
 }