コード例 #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
ファイル: Form_Login.cs プロジェクト: UIT-AnhTu-0325/BuyGear
 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();
 }
コード例 #14
0
 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();
 }