예제 #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;
        }
예제 #2
0
 public ucSanPhamDaGiao(Form_Main parent, Form_GioHang parentGioHang)
 {
     this.parent = parent;
     InitializeComponent();
     this.parentGiohang = parentGioHang;
 }
예제 #3
0
 public ucDaXemYeuThich(Form_Main parent, Form_GioHang parentGiohang)
 {
     this.parentGioHang = parentGiohang;
     this.parent        = parent;
     InitializeComponent();
 }
예제 #4
0
 public ucSanPhamTrongGio(Form_Main parent, Form_GioHang parentgh)
 {
     this.parent   = parent;
     this.parentgh = parentgh;
     InitializeComponent();
 }
예제 #5
0
 public ucSanPhamdaxem(Form_Main parent, Form_GioHang parentGioHang)
 {
     this.parentGioHang = parentGioHang;
     this.parent        = parent;
     InitializeComponent();
 }