private void sua_btn_Click(object sender, EventArgs e) { if (loai == "Hợp đồng") { PBHHD pbhhd = new PBHHD(this); pbhhd.loadEdit(busHangHoa.selectHopDong(dtoDonHang)); pbhhd.Show(); } else if (loai == "Cá Nhân") { PBHTT pbhhd = new PBHTT(this); pbhhd.loadEdit(busHangHoa.selectCaNhan(dtoDonHang)); pbhhd.Show(); } }
public AddProduct(PBHTT pbhtt) { InitializeComponent(); Pbhtt = pbhtt; }
private void them_btn_Click(object sender, EventArgs e) { PBHTT pbhtt = new PBHTT(this); pbhtt.Show(); }