Пример #1
0
 private void btnCalcLetterGrade_Click(object sender, RoutedEventArgs e)
 {
     if (isValid())
     {
         IntroToProg.SetScores(txtAssign1, txtAssign2, txtAssign3, txtAssign4);
         txtLetterGrade.Text = IntroToProg.LetterGrade;
     }
 }
Пример #2
0
 private void btnDisplay_Click(object sender, RoutedEventArgs e)
 {
     if (isValid())
     {
         IntroToProg.SetScores(txtAssign1, txtAssign2, txtAssign3, txtAssign4);
         lstGrades.Items.Clear();
         foreach (var grade in IntroToProg.Scores)
         {
             lstGrades.Items.Add(grade);
         }
     }
 }