private void btn_Back_Click(object sender, EventArgs e) { UCCourseGoals uCCourseGoals = new UCCourseGoals(pnl_container, subId, isAdmin); this.Dispose(); cMain.loadUC(pnl_container, uCCourseGoals); }
private void btn_delete_Click(object sender, EventArgs e) { CCourseGoals cCourseGoals = new CCourseGoals(); var result = MessageBox.Show("Chắc chắn xóa?", "Thông báo", MessageBoxButtons.OKCancel); if (result == DialogResult.OK) { cCourseGoals.Delete(subId, courseGoalId); } this.Dispose(); UCCourseGoals uCCourseGoals = new UCCourseGoals(pnl_contain, subId, isAdmin); cMain.loadUC(pnl_contain, uCCourseGoals); }
private void btn_edit_Click(object sender, EventArgs e) { if (txt_GoalID.Text != "" && txt_Description.Text != "") { coursegoal.ID_Goal = this.txt_GoalID.Text; coursegoal.Description_Goal = this.txt_Description.Text; coursegoal.ID_CDR = CDRs; coursegoal.ID_CTDT = CTDTs; cCourseGoals.Update(subId, coursegoalId, coursegoal); MessageBox.Show("Sửa thông tin thành công"); UCCourseGoals uCCourseGoals = new UCCourseGoals(pnl_container, subId, isAdmin); cMain.loadUC(pnl_container, uCCourseGoals); } else { MessageBox.Show("Vui lòng điền đủ thông tin"); } }
private void btn_CourseGoals_Click(object sender, EventArgs e) { UCCourseGoals uCCourseGoals = new UCCourseGoals(pnl_container, Sub_id, isAdmin); cMain.loadUC(pnl_container, uCCourseGoals); }