예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            recipeSource = new FileRecipeSource();

            // Inicjalizacja kontrolek.
            RecipeList recipeList = FindName("RecipeList") as RecipeList;

            recipeList.Initialize(recipeSource);

            //TODO: Powiązać eventy/handlery
        }
예제 #2
0
        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;
        }
예제 #3
0
 public IActionResult Initialize()
 {
     RecipeList.Initialize();
     return(RedirectToAction(nameof(Index)));
 }