public DynamicRecipeView(RecipeDetails rd, MainWindow mw)
        {
            InitializeComponent();

            this.mw = mw;
            a       = this.Height;
            b       = this.Width;
            c       = this.Top;
            d       = this.Left;

            this.steps_arraylist = rd.getSteps();
            this.step.initializeStepper(this.steps_arraylist, rd.getToolsToStep());

            setImage(rd.getImage());
            setName(rd.getRecipeName());
            setCookingTime(rd.getCookingTime());
            setServing(rd.getServing());
            setCategories(rd.getCategories());

            setTools(rd.getTools());
            setIngridients(rd.getIngridients());
            setSteps(rd.getSteps());

            if (mw.isSplit())
            {
                this.WindowState = WindowState.Normal;
                this.Height      = mw.Height;
                this.Width       = mw.Width;
                this.Top         = mw.Top;
                this.Left        = mw.Left;
            }

            backupScale();
        }
        private RecipeDetails prepQuesadilla()
        {
            RecipeDetails rd = new RecipeDetails();

            rd.setImage("quesadilla.png");
            rd.setRecipeName("Quick Cheesy Quesadillas");
            rd.setCookingTime(25);
            rd.setServing(6);

            rd.addCategory("Beginner");
            rd.addCategory("Lunch");
            rd.addCategory("Vegeterian");

            //Steps
            rd.addIngridient("6 flour torillas");
            rd.addIngridient("1 1/2 cups shredded cheddar cheese");
            rd.addIngridient("2 green onions");
            rd.addIngridient("jar of salsa");
            rd.addIngridient("canola oil");

            //Tools
            rd.addTool("1 knife");
            rd.addTool("1 large pan");

            //Steps
            rd.addStep("Slice green onions thinly");
            rd.addStep("Lay out tortilla and add 1/4 cheese, 1 tbsp salsa, and a sprinkle of green onions to half of the tortilla");
            rd.addStep("Brush edge of tortilla with water and fold it over, press to seal");
            rd.addStep("Heat oil in pan over medium heat, add in quesadilla and cook until golden on both sides");
            rd.addStep("Cut into triangles");
            rd.addStep("Serve immediately with salsa");

            //Tools to step
            rd.addToolsToStep(0, new List <string> {
                "1 knife", "2 green onions"
            });
            rd.addToolsToStep(1, new List <string> {
                "6 flour tortillas", "1 1/2 cups shredded cheddar cheese", "jar of salsa"
            });
            rd.addToolsToStep(2, new List <string> {
                ""
            });
            rd.addToolsToStep(3, new List <string> {
                "1 large pan"
            });
            rd.addToolsToStep(4, new List <string> {
                ""
            });
            rd.addToolsToStep(5, new List <string> {
                ""
            });

            return(rd);
        }
        private void Image_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Grid current = (Grid)sender;

            this.ChosenRecipe.Margin         = current.Margin;
            this.ViewRecipeButton.Margin     = new Thickness(current.Margin.Left + 130, current.Margin.Top + 70, 0, 0);
            this.ViewRecipeButton.Visibility = Visibility.Visible;
            Border_highlight(this.ChosenRecipe);

            //Do the preps depending on which one we chose
            if (current.Name == "frenchomelet")
            {
                this.current_recipe = prepOmelet();
            }
            else if (current.Name == "beansalad")
            {
                this.current_recipe = prepBeanSalad();
            }
            else if (current.Name == "quesadilla")
            {
                this.current_recipe = prepQuesadilla();
            }
        }
        private RecipeDetails prepBeanSalad()
        {
            RecipeDetails rd = new RecipeDetails();

            rd.setImage("beansalad.png");
            rd.setRecipeName("Broccoli Rabe and White Bean Salad");
            rd.setCookingTime(25);
            rd.setServing(4);

            rd.addCategory("Easy");
            rd.addCategory("Side");
            rd.addCategory("Vegeterian");
            rd.addCategory("Leafy Greens");

            //Steps
            rd.addIngridient("30 oz  of canned white kidney beans");
            rd.addIngridient("3 tbsp olive oil");
            rd.addIngridient("half bunch broccoli rabe");
            rd.addIngridient("4 garlic cloves");
            rd.addIngridient("1 small lemon");
            rd.addIngridient("pinch salt");
            rd.addIngridient("pinch pepper");

            //Tools
            rd.addTool("1 knife");
            rd.addTool("1 pot");
            rd.addTool("1 medium pan");

            //Steps
            rd.addStep("Slice garlic cloves and lemon thinly");
            rd.addStep("Chop broccoli rabe into large chunks");
            rd.addStep("Heat oil in a pan and add garlic and lemons, cook until golden brown");
            rd.addStep("Add broccoli into the pan and cook until wilted");
            rd.addStep("Drain beans and boil in pot with 1/2 cup water for 3 mins");
            rd.addStep("Drain beans and add to pan");
            rd.addStep("Salt and pepper to taste");
            rd.addStep("Serve immediately");

            //Tools to step
            rd.addToolsToStep(0, new List <string> {
                "1 knife", "4 garlic cloves", "1 small lemon"
            });
            rd.addToolsToStep(1, new List <string> {
                "half bunch broccoli rabe"
            });
            rd.addToolsToStep(2, new List <string> {
                "1 medium pan"
            });
            rd.addToolsToStep(3, new List <string> {
                ""
            });
            rd.addToolsToStep(4, new List <string> {
                "30 oz canned white kidney beans", "1 pot"
            });
            rd.addToolsToStep(5, new List <string> {
                ""
            });
            rd.addToolsToStep(6, new List <string> {
                "pinch of salt", "pinch of pepper"
            });
            rd.addToolsToStep(7, new List <string> {
                ""
            });

            return(rd);
        }
        private RecipeDetails prepOmelet()
        {
            RecipeDetails rd = new RecipeDetails();

            rd.setImage("frenchomelet.png");
            rd.setRecipeName("French Omelette ");
            rd.setCookingTime(15);
            rd.setServing(1);

            rd.addCategory("Beginner");
            rd.addCategory("Eggs");
            rd.addCategory("Vegeterian");
            rd.addCategory("French");

            //Steps
            rd.addIngridient("4 large eggs");
            rd.addIngridient("1 tbsp olive oil");
            rd.addIngridient("100 grams cheddar cheese");
            rd.addIngridient("pinch salt");
            rd.addIngridient("pinch pepper");

            //Tools
            rd.addTool("1 cup");
            rd.addTool("1 fork");
            rd.addTool("1 medium pan");
            rd.addTool("1 spatula");

            //Steps
            rd.addStep("Heat 1 table spoon of olive oil in a pan over medium heat");
            rd.addStep("In a cup, beat 4 large eggs");
            rd.addStep("Add salt and pepper to taste");
            rd.addStep("Pour eggs into pan");
            rd.addStep("Cook until eggs set");
            rd.addStep("Using the spatula, flip the omelette");
            rd.addStep("Spread cheese over the omelette");
            rd.addStep("Cook for 3 minutes and fold");
            rd.addStep("Serve immediately");

            //Tools to step
            rd.addToolsToStep(0, new List <string> {
                "1 medium pan", "1 tbsp olive oil"
            });
            rd.addToolsToStep(1, new List <string> {
                "1 cup", "4 large eggs"
            });
            rd.addToolsToStep(2, new List <string> {
                "pinch salt", "pinch pepper"
            });
            rd.addToolsToStep(3, new List <string> {
                ""
            });
            rd.addToolsToStep(4, new List <string> {
                ""
            });
            rd.addToolsToStep(5, new List <string> {
                "1 spatula"
            });
            rd.addToolsToStep(6, new List <string> {
                "100 grams cheddar cheese"
            });
            rd.addToolsToStep(7, new List <string> {
                ""
            });
            rd.addToolsToStep(8, new List <string> {
                ""
            });


            return(rd);
        }