Exemplo n.º 1
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            if (txt_GoalID.Text != "" && txt_Description.Text != "" && count_hp != 0 && count_ctdt != 0)
            {
                courseGoal.ID_Goal          = this.txt_GoalID.Text;
                courseGoal.Description_Goal = this.txt_Description.Text;
                courseGoal.ID_CDR           = CDRs;
                courseGoal.ID_CTDT          = CTDTs;
                cCourseGoals.addCourseGoal(sub_id, courseGoal);
                this.txt_GoalID.Text      = "";
                this.txt_Description.Text = "";
                MessageBox.Show("Thêm thông tin thành công");

                this.Dispose();
                UCCousrseGoalAdd uCCousrseGoalAdd = new UCCousrseGoalAdd(sub_id, pnl_container, isAdmin);
                cMain.loadUC(pnl_container, uCCousrseGoalAdd);
            }
            else
            {
                MessageBox.Show("Vui lòng nhập đầy đủ thông tin");
            }
        }
Exemplo n.º 2
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            UCCousrseGoalAdd uCCousrseGoalAdd = new UCCousrseGoalAdd(subId, pnl_contain, isAdmin);

            cMain.loadUC(pnl_container, uCCousrseGoalAdd);
        }