private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex < 0 || e.RowIndex < 0)
     {
         return;
     }
     int session = (int)dataGridView1["SessionIDColumn", e.RowIndex].Value;
     int stdID = (int)dataGridView1["stdIDColumn", e.RowIndex].Value;
     int year = (int)dataGridView1["regYearColumn", e.RowIndex].Value;
     int term = (int)dataGridView1["regTermColumn", e.RowIndex].Value;
     NewRegistrationForm newRegistrationForm = new NewRegistrationForm(session,year,term,stdID);
     newRegistrationForm.Show();
     //newRegistrationForm.registrationFormControl1.LoadCoursesButton.PerformClick();
 }
 private void NewRegistrationToolStripButton_Click(object sender, EventArgs e)
 {
     NewRegistrationForm newRegistrationForm = new NewRegistrationForm();
     newRegistrationForm.Show();
     //newRegistrationForm.registrationFormControl1.LoadCoursesButton.PerformClick();
 }