Exemple #1
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            if (txt_SelfStudyID.Text != "" && countRequests != 0)
            {
                selfStudy.ID      = this.txt_SelfStudyID.Text;
                selfStudy.Details = details;
                selfStudy.Request = requests;
                cSelfStudy.addSelfStudy(sub_id, selfStudy);
                this.txt_SelfStudyID.Text = "";
                MessageBox.Show("Thành Công");

                this.Dispose();
                UCSelfStudiesAdd uCSelfStudiesAdd = new UCSelfStudiesAdd(sub_id, pnl_container, isAdmin);
                cMain.loadUC(pnl_container, uCSelfStudiesAdd);
            }
            else
            {
                MessageBox.Show("Vui lòng điền đầy đủ thông tin");
            }
        }
Exemple #2
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            UCSelfStudiesAdd uCSelfStudiesAdd = new UCSelfStudiesAdd(subId, pnl_contain, isAdmin);

            cMain.loadUC(pnl_contain, uCSelfStudiesAdd);
        }