Exemplo n.º 1
0
 private void btnAddAnotherClass_Click(object sender, EventArgs e)
 {
     //reset form to default values if save was successful
     if (saveClass() == true)
     {
         txtClassName.ResetText();
         cbClassProfessor.SelectedIndex = -1;
         ctrCredits.Value          = 0;
         chkClassMonday.Checked    = false;
         chkClassTuesday.Checked   = false;
         chkClassWednesday.Checked = false;
         chkClassThursday.Checked  = false;
         chkClassFriday.Checked    = false;
         txtClassLocation.ResetText();
         dtClassStartTime.Value          = new DateTime(2000, 1, 1, 11, 0, 0);
         dtClassEndTime.Value            = new DateTime(2000, 1, 1, 12, 0, 0);
         cbSemester.SelectedIndex        = -1;
         cbFinalLetterGrade.SelectedItem = null;
         chkClassFinished.Checked        = false;
         lnkAddGradingCategories.Enabled = true;
         addGradingScale    = new AddGradingScaleForm();
         addGradeCategories = new AddGradeCategoriesForm();
     }
 }
Exemplo n.º 2
0
 private void btnAddAnotherClass_Click(object sender, EventArgs e)
 {
     //reset form to default values if save was successful
     if (saveClass() == true) {
         txtClassName.ResetText();
         cbClassProfessor.SelectedIndex = -1;
         ctrCredits.Value = 0;
         chkClassMonday.Checked = false;
         chkClassTuesday.Checked = false;
         chkClassWednesday.Checked = false;
         chkClassThursday.Checked = false;
         chkClassFriday.Checked = false;
         txtClassLocation.ResetText();
         dtClassStartTime.Value = new DateTime(2000, 1, 1, 11, 0, 0);
         dtClassEndTime.Value = new DateTime(2000, 1, 1, 12, 0, 0);
         cbSemester.SelectedIndex = -1;
         cbFinalLetterGrade.SelectedItem = null;
         chkClassFinished.Checked = false;
         lnkAddGradingCategories.Enabled = true;
         addGradingScale = new AddGradingScaleForm();
         addGradeCategories = new AddGradeCategoriesForm();
     }
 }