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 trbModify_Click(object sender, EventArgs e) { if (!CheckCondition()) { return; } FrmModifyScore frmModifyScore = new FrmModifyScore(this.dgvDetails, _className); frmModifyScore.ShowDialog(); }