Пример #1
0
 public Form_MuaHang(Form_Main parent)
 {
     this.parent = parent;
     InitializeComponent();
     loadSanPham();
     InitiateFunction();
 }
Пример #2
0
        private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            Form_Main a = new Form_Main();

            a.Show();
            this.Hide();
        }
Пример #3
0
 public Form_SanPham(string masp, Form_Main parent)
 {
     this.parent = parent;
     InitializeComponent();
     this._masp = masp;
     LoadNhanXetFull("somnhat");
     InitiativeYeuThich();
 }
Пример #4
0
 public Form_Login(Form_Main parent)
 {
     this.parent = parent;
     InitializeComponent();
     //focus username input
     txtUsername.Focus();
     checkfield1 = true;
 }
Пример #5
0
 public Form_Register(Form_Main parent, Form_Login createMe)
 {
     this.parent   = parent;
     this.createMe = createMe;
     InitializeComponent();
     //focus username input
     txtUsername.Focus();
     checkfield1 = true;
 }
Пример #6
0
        public Form_Infor(Form_Main parent)
        {
            this.parent = parent;

            InitializeComponent();
            txtAddress.Enabled = txtName.Enabled = txtEmail.Enabled = txtSDT.Enabled = true;
            rdoNam.Enabled     = rdoNu.Enabled = true;
            chkNam.Enabled     = chkNgay.Enabled = chkThang.Enabled = true;
            lblWelcome.Text    = "Welcome " + Account.Instance.userName;
        }
Пример #7
0
 public ucRecommendSanPham(Form_Main parent, string masp, string name, string price
                           , List <string> link_image)
 {
     InitializeComponent();
     this.parent       = parent;
     _masp             = masp;
     this.lbName.Text  = name;
     this.lbPrice.Text = Data.Instance.giaFix(int.Parse(price));
     picProduct.Image  = Picture.LoadImage_by_ID(link_image[0]);
 }
Пример #8
0
 public Form_NhanXet(Form_Main parent, string masp, ucSanPhamDaGiao ucparent)
 {
     InitializeComponent();
     this.parent        = parent;
     this.ucparent      = ucparent;
     this.masp          = masp;
     rateMain.Value     = Data_NhanXet.Instance.Rate(masp);
     lblDanhGia.Text    = "( " + Data_NhanXet.Instance.countRate(masp).ToString() + " đánh giá )";
     lblTenSanPham.Text = Data_NhanXet.Instance.Name(masp);
     picSanPham.Image   = Picture.LoadImage_by_ID(Data_NhanXet.Instance.IDAnh(masp));
 }
Пример #9
0
 public Form_GioHang(Form_Main parent, int type = 1)
 {
     this.parent = parent;
     InitializeComponent();
     if (type == 1)
     {
         LoadSanPhamTrongGio();
     }
     else
     {
         pageTab.SetPage(1);
         UnsetPaVisible();
         paDangGiao.Visible = true;
         loadSanPhamDangGiao();
     }
     InitiateFunction();
     LoadInfor();
 }
Пример #10
0
        public ucTabSanPham(Form_Main parent, string title, string type)
        {
            InitializeComponent();
            this.parent = parent;
            loadTopTrading(type);
            Color[] col = new Color[6];
            col[0] = Color.FromArgb(255, 87, 51);
            col[1] = Color.FromArgb(46, 204, 113);
            col[2] = Color.FromArgb(136, 78, 160);
            col[3] = Color.FromArgb(36, 113, 163);
            col[4] = Color.FromArgb(231, 76, 60);
            col[5] = Color.FromArgb(203, 67, 53);
            Random rand = new Random();
            int    x    = rand.Next(0, 4);

            pnlTotal.GradientBottomLeft = col[3];
            pnlTotal.GradientTopLeft    = col[3];
            lblTitle.Text = title;
        }
Пример #11
0
 public Form_Infor2(Form_Main parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
Пример #12
0
 public ucDaXemYeuThich(Form_Main parent, Form_GioHang parentGiohang)
 {
     this.parentGioHang = parentGiohang;
     this.parent        = parent;
     InitializeComponent();
 }
Пример #13
0
 public ucSanPhamdaxem(Form_Main parent, Form_GioHang parentGioHang)
 {
     this.parentGioHang = parentGioHang;
     this.parent        = parent;
     InitializeComponent();
 }
 public Form_ThanhToanThanhCong(Form_Main parent)
 {
     this.parent = parent;
     InitializeComponent();
     this.lblMaDonHang.Text = "BG" + Data_gioHang.Instance.getSohd();
 }
Пример #15
0
 public ucSanPhamDangGiao(Form_Main parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
Пример #16
0
 public ucSanPhamDaGiao(Form_Main parent, Form_GioHang parentGioHang)
 {
     this.parent = parent;
     InitializeComponent();
     this.parentGiohang = parentGioHang;
 }
Пример #17
0
 public ucSanPhamTrongGio(Form_Main parent, Form_GioHang parentgh)
 {
     this.parent   = parent;
     this.parentgh = parentgh;
     InitializeComponent();
 }