private void buttonShow_Click(object sender, EventArgs e)
        {
            Student aStudent = new Student();

            aStudent.regNo = textBoxRegNo.Text;
            aStudent.firstName = textBoxfirstName.Text;
            aStudent.lastName = textBoxLastName.Text;

            studentlist.Add(aStudent);
            MessageBox.Show("Save successfull");
            ClearTextBoxes();
        }
 /// <summary>
 /// Method to update a student
 /// </summary>
 /// <param name="student">
 /// Student object.
 /// </param>
 /// <returns>
 /// True if updating was true.
 /// </returns>
 public bool Update(Student student)
 {
     return this.repository.Update(student);
 }
 /// <summary>
 /// Method to create a new student
 /// </summary>
 /// <param name="student">
 /// Student object.
 /// </param>
 /// <returns>
 /// True if insertion was true.
 /// </returns>
 public bool Create(Student student)
 {
     return this.repository.Create(student);           
 }