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();
     }
 }