public Form_MuaHang(Form_Main parent) { this.parent = parent; InitializeComponent(); loadSanPham(); InitiateFunction(); }
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { Form_Main a = new Form_Main(); a.Show(); this.Hide(); }
public Form_SanPham(string masp, Form_Main parent) { this.parent = parent; InitializeComponent(); this._masp = masp; LoadNhanXetFull("somnhat"); InitiativeYeuThich(); }
public Form_Login(Form_Main parent) { this.parent = parent; InitializeComponent(); //focus username input txtUsername.Focus(); checkfield1 = true; }
public Form_Register(Form_Main parent, Form_Login createMe) { this.parent = parent; this.createMe = createMe; InitializeComponent(); //focus username input txtUsername.Focus(); checkfield1 = true; }
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; }
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]); }
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)); }
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(); }
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; }
public Form_Infor2(Form_Main parent) { this.parent = parent; InitializeComponent(); }
public ucDaXemYeuThich(Form_Main parent, Form_GioHang parentGiohang) { this.parentGioHang = parentGiohang; this.parent = parent; InitializeComponent(); }
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(); }
public ucSanPhamDangGiao(Form_Main parent) { this.parent = parent; InitializeComponent(); }
public ucSanPhamDaGiao(Form_Main parent, Form_GioHang parentGioHang) { this.parent = parent; InitializeComponent(); this.parentGiohang = parentGioHang; }
public ucSanPhamTrongGio(Form_Main parent, Form_GioHang parentgh) { this.parent = parent; this.parentgh = parentgh; InitializeComponent(); }