private void Button_Click_2(object sender, RoutedEventArgs e) { //create another info window //InfoWindow w = new InfoWindow(); //w.Show(); TeacherUtils ut = new TeacherUtils(); string dn = ""; bool x = ut.IsWorkday(out dn); this.letterGrade.Text = dn; }
private void GradeButton_Click(object sender, RoutedEventArgs e) { TeacherUtils tu = new TeacherUtils(); float x = float.Parse(this.studentScore.Text); System.Diagnostics.EventLog.WriteEntry("GradeApp", "Grading the student" , System.Diagnostics.EventLogEntryType.Information); float z = float.Parse(this.curve.Text); string y = tu.GetGrade(score: x, curve: z); this.letterGrade.Text = y; }