Ejemplo n.º 1
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            AddRecipePage recipePage = new AddRecipePage();

            recipePage.HomePanel += Home;
            PanelOfUserControl.Children.Clear();
            PanelOfUserControl.Children.Add(recipePage);
        }
        private void btnView_Click(object sender, RoutedEventArgs e)
        {
            Recipe SelectedRecipe = Tools.FindRecipeByTitle((string)lstSearchResults.SelectedItem);

            if (SelectedRecipe == null)
            {
                return;
            }
            EditRecipePage            = new AddRecipePage(SelectedRecipe, true);
            EditRecipePage.HomePanel += GoBackHere;

            GridListView.Children.Add(EditRecipePage);
        }
Ejemplo n.º 3
0
        private void BtnEditRecipe_Click(object sender, RoutedEventArgs e)
        {
            Recipe SelectedRecipe = Tools.FindRecipeByTitle((string)vwlRecipeList.SelectedItem);

            if (SelectedRecipe == null)
            {
                return;
            }
            EditRecipePage            = new AddRecipePage(SelectedRecipe);
            EditRecipePage.HomePanel += GoBackHere;

            GrdListView.Children.Add(EditRecipePage);
        }