private void FrmCart_Load(object sender, EventArgs e)
        {
            panelProductList.Controls.Clear();
            foreach (var a in db.select_detailCart(UCShowProduct.tranferIDBill.cartID))
            {
                tranferDataGG data = new tranferDataGG(a.masp, a.tenSP, Convert.ToDouble(a.gia), Convert.ToInt32(a.soLuong), convertImg(a.masp), a.maCTG);


                FrmCartProduct cartProduct = new FrmCartProduct(loadData_whenUpdateQuantity, data);
                cartProduct.Dock     = DockStyle.Top;
                cartProduct.TopLevel = false;
                panelProductList.Controls.Add(cartProduct);
                cartProduct.Show();
            }
            loadData_whenUpdateQuantity();
        }
Example #2
0
 public FrmCartProduct(fFRMLOAD lddd, tranferDataGG dt)
 {
     InitializeComponent();
     ldd  = lddd;
     data = dt;
 }