Example #1
0
        private void btn_Back_Click(object sender, EventArgs e)
        {
            UCPPGDs uCPPGDs = new UCPPGDs(pnl_container, sub_id, isAdmin);

            this.Dispose();
            cMain.loadUC(pnl_container, uCPPGDs);
        }
Example #2
0
        private void btn_delete_Click(object sender, EventArgs e)
        {
            CPPGD cPPGD  = new CPPGD();
            var   result = MessageBox.Show("Chắc chắn xóa?", "Thông báo", MessageBoxButtons.OKCancel);

            if (result == DialogResult.OK)
            {
                cPPGD.delete(subId, ppgdId);
            }
            this.Dispose();
            UCPPGDs uCPPGDs = new UCPPGDs(pnl_contain, subId, isAdmin);

            cMain.loadUC(pnl_contain, uCPPGDs);
        }
Example #3
0
 private void btn_Edit_Click(object sender, EventArgs e)
 {
     if (txt_PPGDID.Text != "")
     {
         ppgd.ID     = this.txt_PPGDID.Text;
         ppgd.Detail = details;
         cPPGD.Update(subId, PPGDId, ppgd);
         MessageBox.Show("Sửa thông tin thành công");
         UCPPGDs uCPPGDs = new UCPPGDs(pnl_container, subId, isAdmin);
         cMain.loadUC(pnl_container, uCPPGDs);
     }
     else
     {
         MessageBox.Show("Vui lòng điền đầy đủ thông tin");
     }
 }
Example #4
0
        private void btn_ppgd_Click(object sender, EventArgs e)
        {
            UCPPGDs uCPPGDs = new UCPPGDs(pnl_container, Sub_id, isAdmin);

            cMain.loadUC(pnl_container, uCPPGDs);
        }