//saves the current professor information and resets all the form controls
 //  if the save was sucessful
 private void btnAddAnotherProfessor_Click(object sender, EventArgs e)
 {
     if (saveProfessorInfo() == true) {
         txtProfessorTitle.Text = "";
         txtProfessorFName.Text = "";
         txtProfessorLName.Text = "";
         txtProfessorEmail.Text = "";
         txtProfessorOfficeLoc.Text = "";
         addPhoneNumber = new AddPhoneNumberForm();
         addOfficeHours = new AddOfficeHoursForm();
     }
 }
Exemple #2
0
 //saves the current professor information and resets all the form controls
 //  if the save was sucessful
 private void btnAddAnotherProfessor_Click(object sender, EventArgs e)
 {
     if (saveProfessorInfo() == true)
     {
         txtProfessorTitle.Text     = "";
         txtProfessorFName.Text     = "";
         txtProfessorLName.Text     = "";
         txtProfessorEmail.Text     = "";
         txtProfessorOfficeLoc.Text = "";
         addPhoneNumber             = new AddPhoneNumberForm();
         addOfficeHours             = new AddOfficeHoursForm();
     }
 }