private void btn_Add_Click(object sender, EventArgs e)
 {
     if (status == 0)
     {
         ViewStudent_Form add = new ViewStudent_Form("old", Convert.ToInt32(txtBox_IDNum.Text));
         add.ShowDialog();
     }
     else
     {
         ViewStudent_Form add = new ViewStudent_Form("new", Convert.ToInt32(txtBox_IDNum.Text));
         add.ShowDialog();
     }
 }
        private void btn_Register_Click(object sender, EventArgs e)
        {
            if (comboBox_Event.Text != "RecWeek")
            {
                var eventId = (from eevent in eventList
                               where eevent.Name == comboBox_Event.Text
                               select eevent.EventID).FirstOrDefault();

                su.SetSystemMessage(db.AddParticipant(comboBox_Event.Text, student.StudentID));

                MessageBox.Show(su.SystemMessage, su.SystemName(), MessageBoxButtons.OK, MessageBoxIcon.Information);

                FormReset();
            }
            else
            {
                ViewStudent_Form add = new ViewStudent_Form("add", int.Parse((txtBox_IDNum.Text)));
                add.ShowDialog();
                su.SetSystemMessage(db.AddParticipant(comboBox_Event.Text, student.StudentID));
                FormReset();
            }
        }
 private void btn_Update_Click(object sender, EventArgs e)
 {
     ViewStudent_Form edit = new ViewStudent_Form("edit", Convert.ToInt32(StudentGridView.SelectedRows[0].Cells[0].Value.ToString()));
     edit.ShowDialog();
     ShowAll();
 }