Ejemplo n.º 1
0
        private void bunifuButton5_Click(object sender, EventArgs e)
        {
            if (Account.Instance.userName == "")
            {
                MessageBox.Show("Vui lòng đăng nhập để vào giỏ hàng");
                return;
            }
            Form_GioHang frmGiohang = new Form_GioHang(this, 2)
            {
                TopLevel = false,
                TopMost  = true
            };

            this.fpnlChiTiet.Controls.Clear();
            this.fpnlProduct.Visible      = false;
            this.pnlChiTietChange.Visible = true;
            this.fpnlChiTiet.Visible      = true;
            this.fpnlChiTiet.Controls.Add(frmGiohang);
            frmGiohang.Show();
            this.pnlAddThanhCong.Visible = false;
        }
Ejemplo n.º 2
0
 public ucSanPhamDaGiao(Form_Main parent, Form_GioHang parentGioHang)
 {
     this.parent = parent;
     InitializeComponent();
     this.parentGiohang = parentGioHang;
 }
Ejemplo n.º 3
0
 public ucDaXemYeuThich(Form_Main parent, Form_GioHang parentGiohang)
 {
     this.parentGioHang = parentGiohang;
     this.parent        = parent;
     InitializeComponent();
 }
Ejemplo n.º 4
0
 public ucSanPhamTrongGio(Form_Main parent, Form_GioHang parentgh)
 {
     this.parent   = parent;
     this.parentgh = parentgh;
     InitializeComponent();
 }
Ejemplo n.º 5
0
 public ucSanPhamdaxem(Form_Main parent, Form_GioHang parentGioHang)
 {
     this.parentGioHang = parentGioHang;
     this.parent        = parent;
     InitializeComponent();
 }