コード例 #1
0
 public CookingLessonTemplate(RecipeSelectionMenu page, Recipe rec)
 {
     selectMenu = page;
     aRecipe = rec;
     InitializeComponent();
     lblRecipeTitle.Content = rec.Title;
     imgVidPlaceholder.Source = ImageLoader.ToWPFImage(HCI_Cooking.Properties.Resources.video_placeholder);
 }
コード例 #2
0
        public RecipeOverview(Recipe rec, RecipeSelectionMenu previousMenu)
        {
            userDb = Database.getInstance();
            mainUser = userDb.userList[0];
         
            InitializeComponent();

            currentRecipe = rec;
            selectionMenu = previousMenu;

            LoadRecipeValues();
            LoadRecipeSkills();
        }
コード例 #3
0
        public CookingLessonFolding(RecipeSelectionMenu page, Recipe rec)
        {
            InitializeComponent();

            selectMenu = page;
            currentRecipe = rec;
            userDb = Database.getInstance();
            mainUser = userDb.userList[0];
            imgVidPlaceholder.Source = ImageLoader.ToWPFImage(HCI_Cooking.Properties.Resources.video_placeholder);

            lblMPCRecipeTitle.Content = rec.Title;

            txtBlkChapOverview.Text = "Folding is the process of both removing air bubbles from\r\n your dough and mixing ingredients together. " +
                "This is a \r\ndifferent process from mixing because removing air bubbles\r\nrequires a different mixing technique for ingredients that\r\ntend to froth more if mixed intensely.\r\n\r\n" + 
                "In this tutorial, you will learn how to: \r\n" +
                "- Why we remove bubbles from your baking mixture\r\n" +
                "- The technique of removing air bubbles from your mixture\r\n" +
                "- Advanced tips\r\n";
            loadLessonTable();
        }
コード例 #4
0
        public CookingLessonWhisking(RecipeSelectionMenu page, Recipe rec)
        {
            InitializeComponent();

            selectMenu = page;
            currentRecipe = rec;
            userDb = Database.getInstance();
            mainUser = userDb.userList[0];
            imgVidPlaceholder.Source = ImageLoader.ToWPFImage(HCI_Cooking.Properties.Resources.video_placeholder);
            
            lblMPCRecipeTitle.Content = rec.Title;

            txtBlkChapOverview.Text = "Here you will be learning about whisking!\r\n" +
                "Whisking is an essential skill that makes you a great baker\r\nand also determines the texture of final baked product.\r\n\r\n" +
                "In this tutorial, you will be learning how to:\r\n" +
                    "- Beat eggs\r\n" +
                    "- Mix flours\r\n" +
                    "- Not spill your ingredients\r\n"+
                    "- Use other kitchen tools to whisk\r\n" +
                    "- Determine dough consistancy";
            loadLessonTable();
        }