public RecipeIndividualSteps(RecipeOverview parentPage, Recipe rec)
        {
            InitializeComponent();

            canvAchievement.Visibility = Visibility.Hidden;
            canvAchievement.Opacity = 0;
            overview = parentPage;
            aRecipe = rec;

            userDb = Database.getInstance();
            mainUser = userDb.userList[0];

            // load first step
            stepIndex = 0;
            lastStep = aRecipe.Steps.Count() - 1;
            txtBlkStep.Text = aRecipe.Steps[stepIndex];
            progBar.Maximum = lastStep;
            lblProg.Content = "Steps " + (progBar.Value + 1) + "/" + (lastStep +1);

            // load picture if exists
            if (aRecipe.StepPictures.Count == lastStep + 1)
                imgStep.Source = ImageLoader.ToWPFImage(aRecipe.StepPictures[stepIndex]);
            else
                imgStep.Source = ImageLoader.ToWPFImage(HCI_Cooking.Properties.Resources.placeholder_2);
            

            //load the only achievment on this page

            imgAchievement.Source = ImageLoader.ToWPFImage(new Bitmap(HCI_Cooking.Properties.Resources.mango_cake));
            lblAchievementContent.Content = "First Mango Pudding!";
        }
        public RecipeCompleteSteps(RecipeOverview parentPage, RecipeIndividualSteps indivPage, Recipe rec)
        {
            InitializeComponent();
            canvAchievement.Opacity = 0;

            overview = parentPage;
            indivStep = indivPage;
            aRecipe = rec;
            userDb = Database.getInstance();
            mainUser = userDb.userList[0];
            lblTitle.Content = aRecipe.Title;

            //load the only achievment on this page
            imgAchievement.Source = ImageLoader.ToWPFImage(new Bitmap(HCI_Cooking.Properties.Resources.mango_cake));
            lblAchievementContent.Content = "First Mango Pudding!";

            ShowAllSteps();
        }