private void btn_Add_Click(object sender, EventArgs e) { if (txt_PPGDID.Text != "" && count != 0) { ppgd.ID = this.txt_PPGDID.Text; ppgd.Detail = details; cPPGD.addPPGD(sub_id, ppgd); MessageBox.Show("Thành Công"); this.Dispose(); UCPPGDsAdd uCPPGDsAdd = new UCPPGDsAdd(sub_id, pnl_container, isAdmin); cMain.loadUC(pnl_container, uCPPGDsAdd); this.txt_PPGDID.Text = ""; this.txt_Detail.Text = ""; } else if (count == 0) { MessageBox.Show("Vui lòng điền chi tiết trước"); } else { MessageBox.Show("Vui lòng điền đầy đủ thông tin"); } }
private void btn_Add_Click(object sender, EventArgs e) { UCPPGDsAdd uCPPGDAdd = new UCPPGDsAdd(subId, pnl_contain, isAdmin); cMain.loadUC(pnl_contain, uCPPGDAdd); }