Ejemplo n.º 1
0
        private void course3Btn_Click(object sender, RoutedEventArgs e)
        {
            // executes Course3 method from BL_PageContent. This loads all relevant data to course 3.
            // this data is then used to fill the txtCourse, courseFaculty, aboutCourse, and coursePrereq text blocks.
            BL_PageContent.Course3();

            txtCourse.Text     = BL_PageContent.CourseID + "\n" + BL_PageContent.CourseCode + "\n" + BL_PageContent.CourseTitle;
            courseFaculty.Text = BL_PageContent.FacultyMember;
            aboutCourse.Text   = BL_PageContent.AboutCourse;
            coursePrereq.Text  = BL_PageContent.CreditsPrereq;

            // sending the correct image file path to the courseFacultyPic "placeholder" in the XAML file
            courseFacultyPic.Source = new BitmapImage(new Uri(courseFacultyPic.BaseUri, "shadMcdillek.jpeg"));
        }
Ejemplo n.º 2
0
 async void btnCourse3_Click(object sender, RoutedEventArgs e)
 {
     BL_PageContent.Course3();
     txtBoxCourse.Text = BL_PageContent.VarOutput + "\n" + BL_PageContent.CreditsPrereq;
 }