Exemplo n.º 1
0
        private void btn_Back_Click(object sender, EventArgs e)
        {
            UCCourseGoals uCCourseGoals = new UCCourseGoals(pnl_container, subId, isAdmin);

            this.Dispose();
            cMain.loadUC(pnl_container, uCCourseGoals);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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");
     }
 }
Exemplo n.º 4
0
        private void btn_CourseGoals_Click(object sender, EventArgs e)
        {
            UCCourseGoals uCCourseGoals = new UCCourseGoals(pnl_container, Sub_id, isAdmin);

            cMain.loadUC(pnl_container, uCCourseGoals);
        }