async private void btnCourse1_Click(object sender, RoutedEventArgs e) { BL_PageContent.Course1(); txtBoxCourse.Text = BL_PageContent.VarOutput; var dialog = new MessageDialog(BL_PageContent.VarOutput); await dialog.ShowAsync(); }
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")); }
async private void btnCourse1_Click(object sender, RoutedEventArgs e) { BL_PageContent.Course1(); txtBoxCourse.Text = BL_PageContent.VarOutput + "\n" + BL_PageContent.CreditsPrereq; }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); string course = e.Parameter as String; //if (NavigationContext.QueryString.ContainsKey("parameter")) if (course == "COP3488C") { //Output Course Name, Number, and Description BL_PageContent.COP3488(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CTS3302") { BL_PageContent.CTS3302(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CIS3917") { BL_PageContent.CIS3917(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CIS3801") { BL_PageContent.CIS3801(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CIS4655") { BL_PageContent.CIS4655(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CDA3315") { BL_PageContent.CDA3315(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CDA3428") { BL_PageContent.CDA3428(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CTS4623") { BL_PageContent.CTS4623(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CTS3265") { BL_PageContent.CTS3265(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "COP4474") { BL_PageContent.COP4474(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "COP4777") { BL_PageContent.COP4777(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CIS4836") { BL_PageContent.CIS4836(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CIS4793") { BL_PageContent.CIS4793(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CTS4557") { BL_PageContent.CTS4557(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "MAN3504") { BL_PageContent.MAN3504(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "GEB3422") { BL_PageContent.GEB3422(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "CIS4910") { BL_PageContent.CIS4910(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "COP3362") { BL_PageContent.COP3362(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "COP4309") { BL_PageContent.COP4309(); textBox1.Text = BL_PageContent.VarOutput; } if (course == "COP4683") { BL_PageContent.COP4683(); textBox1.Text = BL_PageContent.VarOutput; } }