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; } FrmModifySubject frmModifySubject = new FrmModifySubject(this.dgvDetails); frmModifySubject.ShowDialog(); }
private void mnuUpdateSubject_Click(object sender, EventArgs e) { FrmModifySubject frmModifySubject = new FrmModifySubject(dgvDetails); frmModifySubject.ShowDialog(); }