예제 #1
0
        public void LOAD_Information()
        {
            UserBNL     item     = new UserBNL();
            List <User> ListUser = new List <User>();

            ListUser = item.List_User();
            foreach (User USER in ListUser)
            {
                if ((USER._Name_User).Contains(Name) == true)
                {
                    lblName.Text     += USER._Name_User;
                    URL               = USER._Image;
                    lblNgaySinh.Text += USER._NgaySinh.ToString("dd/MM/yyyy");
                    lblGioiTinh.Text += item.GioiTinh(USER._GioiTinh);
                }
            }

            ItemBNL     ITEM     = new ItemBNL();
            List <Item> ListItem = new List <Item>();

            ListItem = ITEM.List_Item();

            foreach (Item Item1 in ListItem)
            {
                if ((Item1._Name_Item).Contains(Name) == true)
                {
                    LoaiXe          = Item1._LoaiXe;
                    lblDan.Text    += Item1._Dan.ToString();
                    lblSamSet.Text += Item1._SamSet.ToString();
                    lblBoom.Text   += Item1._Boom.ToString();
                    lblDiem.Text    = Item1._Diem.ToString();
                }
            }
        }
예제 #2
0
        public void GetName()
        {
            List <User> ListUser = new List <User>();
            UserBNL     item     = new UserBNL();
            string      name     = "";

            ListUser      = item.List_User();
            name          = item.Name(ID, ListUser);
            NAME          = name;
            lblName.Text += name;
        }
예제 #3
0
 public void CheckForm(DateTime temp)
 {
     if (temp.Date == DateTime.Now.Date)
     {
         UserBNL item = new UserBNL();
         Name = item.Name(ID, item.List_User());
         FrmMain frmMain = new FrmMain(Name);
         this.Visible = false;
         frmMain.ShowDialog();
         this.Visible = true;
     }
     else
     {
         FrmDiemDanhHangNgay FrmDiemDanh = new FrmDiemDanhHangNgay(datetime, ID);
         this.Visible = false;
         FrmDiemDanh.ShowDialog();
         this.Visible = true;
     }
 }