예제 #1
0
        private void btnYeuThich_Click(object sender, EventArgs e)
        {
            if (Account.Instance.userName == "")
            {
                MessageBox.Show("Vui lòng đăng nhập để vào yêu thích");
                return;
            }
            Form_GioHang frmGiohang = new Form_GioHang(this)
            {
                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();
            frmGiohang.YeuThichclick();
            this.pnlAddThanhCong.Visible = false;
        }