public MainWindow() { InitializeComponent(); recipeSource = new FileRecipeSource(); // Inicjalizacja kontrolek. RecipeList recipeList = FindName("RecipeList") as RecipeList; recipeList.Initialize(recipeSource); //TODO: Powiązać eventy/handlery }
public MainWindow() { InitializeComponent(); recipeSource = new FileRecipeSource(); recipeHistory = new FileRecipeHistory(); HelperService.Initialize(recipeSource, recipeHistory); // Inicjalizacja kontrolek. RecipeList recipeList = FindName("RecipeList") as RecipeList; recipeList.Initialize(recipeSource); _SearchBar.QueryChanged += recipeList.Filter; }
public IActionResult Initialize() { RecipeList.Initialize(); return(RedirectToAction(nameof(Index))); }