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); }
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); }
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"); } }
private void btn_ppgd_Click(object sender, EventArgs e) { UCPPGDs uCPPGDs = new UCPPGDs(pnl_container, Sub_id, isAdmin); cMain.loadUC(pnl_container, uCPPGDs); }