private void AddStudentsButton_Click(object sender, EventArgs e) { AddStudent form = new AddStudent(); form.Show(); this.Hide(); }
private void UpdateStudentBtn_Click(object sender, EventArgs e) { if (StudentsGridView.SelectedCells.Count != 0) { int row = StudentsGridView.SelectedCells[0].RowIndex; int id = Convert.ToInt32(StudentsGridView.Rows[row].Cells[0].Value); AddStudent form = new AddStudent(id); form.Show(); this.Hide(); } }
public void ClearTxt() { AddStudent Student = new AddStudent(); Student.DBFirstName.Clear(); Student.DBSurname.Clear(); Student.DBEmail.Clear(); Student.DBPhone.Clear(); Student.DBAddress1.Clear(); Student.DBAddress2.Clear(); Student.DBCity.Clear(); Student.DBCounty.Clear(); Student.DBCourse.Clear(); Student.txtStudID.Clear(); }