private void tbrFind_Click(object sender, EventArgs e)
 {
     if (!CheckCondition())
     {
         return;
     }
     dgvDetails.Tag = 0;
     if (this.Tag.Equals("Class"))
     {
         FrmFindClass frmFindClass = new FrmFindClass(dgvDetails);
         frmFindClass.Show();
     }
     else if (this.Tag.Equals("Student"))
     {
         FrmFindStudent frmFindStudent = new FrmFindStudent(dgvDetails);
         frmFindStudent.Show();
     }
     else if (this.Tag.Equals("Subject"))
     {
         FrmFindSubject frmFindSubject = new FrmFindSubject(dgvDetails);
         frmFindSubject.Show();
     }
     else if (this.Tag.Equals("Course"))
     {
         FrmFindCourse frmFindCourse = new FrmFindCourse(dgvDetails, _currentClassName);
         frmFindCourse.Show();
     }
     else if (this.Tag.Equals("Score"))
     {
         FrmFindScore frmFindScore = new FrmFindScore(dgvDetails);
         frmFindScore.Show();
     }
 }
        private void trbFind_Click(object sender, EventArgs e)
        {
            if (!CheckCondition())
            {
                return;
            }
            FrmFindCourse frmFindCourse = new FrmFindCourse(dgvDetails, _className);

            frmFindCourse.Show();
        }