Пример #1
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            if (txt_CDRID.Text != "" && txt_Description.Text != "")
            {
                outcome.ID_CDR          = this.txt_CDRID.Text;
                outcome.Description_CDR = this.txt_Description.Text;
                outcome.ID_CDIO         = CDIOs;
                cProgramOutStandards.addOutcome(sub_id, outcome);
                this.txt_CDRID.Text       = "";
                this.txt_Description.Text = "";
                MessageBox.Show("Thành Công");

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

            cMain.loadUC(pnl_contain, uCProgramOutStandardsAdd);
        }