private void course2Btn_Click(object sender, RoutedEventArgs e) { // executes Course2 method from BL_PageContent. This loads all relevant data to course 2. // this data is then used to fill the txtCourse, courseFaculty, aboutCourse, and coursePrereq text blocks BL_PageContent.Course2(); 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, "cynthiaMoonhowler.png")); }
async private void btnCourse2_Click(object sender, RoutedEventArgs e) { BL_PageContent.Course2(); txtBoxCourse.Text = BL_PageContent.VarOutput + "\n" + BL_PageContent.CreditsPrereq; }