private void cmuModify_Click(object sender, EventArgs e)
 {
     if (!CheckCondition())
     {
         return;
     }
     if (this.Tag.Equals("Class"))
     {
         FrmModifyClass frmModifyClass = new FrmModifyClass(dgvDetails);
         frmModifyClass.ShowDialog();
     }
     else if (this.Tag.Equals("Student"))
     {
         FrmModifyStudent frmModifyStudent = new FrmModifyStudent(this.dgvDetails, _currentClassName);
         frmModifyStudent.ShowDialog();
     }
     else if (this.Tag.Equals("Subject"))
     {
         FrmModifySubject frmModifySubject = new FrmModifySubject(dgvDetails);
         frmModifySubject.ShowDialog();
     }
     else if (this.Tag.Equals("Course"))
     {
         FrmModifyCourse frmModifyCourse = new FrmModifyCourse(dgvDetails, _currentClassName);
         frmModifyCourse.ShowDialog();
     }
     else if (this.Tag.Equals("Score"))
     {
         FrmModifyScore frmModifyScore = new FrmModifyScore(dgvDetails, _currentClassName);
         frmModifyScore.ShowDialog();
     }
 }
        private void trbModifyClass_Click(object sender, EventArgs e)
        {
            if (!CheckCondition())
            {
                return;
            }
            FrmModifyClass frmModifyClass = new FrmModifyClass(this.dgvDetails);

            frmModifyClass.ShowDialog();
        }
        private void mnuUpdateClass_Click(object sender, EventArgs e)
        {
            FrmModifyClass frmModifyClass = new FrmModifyClass(this.dgvDetails);

            frmModifyClass.ShowDialog();
        }