Beispiel #1
0
 /* Hàm Tìm Kiếm Theo Tên */
 private void TimKiem()
 {
     pnDisplay.Controls.Clear();
     for (int i = 0; i < ds.Count; i++)
     {
         if (checkHienThi == true)
         {
             if (ds[i].GameTitle.Contains(tbSearch.Text) == true)
             {
                 Bitmap     gì_đó = new Bitmap(Application.StartupPath + "\\img\\" + ds[i].GameID + ".jpg");
                 gridMember a     = new gridMember();
                 a.gameLogo  = gì_đó;
                 a.gameTitle = ds[i].GameTitle;
                 pnDisplay.Controls.Add(a);
             }
         }
         else
         {
             if (ds[i].GameTitle.Contains(tbSearch.Text) == true)
             {
                 Bitmap     gì_đó = new Bitmap(Application.StartupPath + "\\img\\" + ds[i].GameID + ".jpg");
                 listMember a     = new listMember();
                 a.gameLogo     = gì_đó;
                 a.gameTitle    = ds[i].GameTitle;
                 a.gamePrice    = ds[i].GamePrice;
                 a.gameVersion  = ds[i].GameVersion;
                 a.releaseDate  = ds[i].ReleaseDate;
                 a.gameCategory = ds[i].GameCategory;
                 pnDisplay.Controls.Add(a);
             }
         }
     }
 }
Beispiel #2
0
 private void getList(List <gameObject> ds)
 {
     pnDisplay.Controls.Clear();
     for (int i = 0; i < ds.Count; i++)
     {
         Bitmap     gì_đó = new Bitmap(Application.StartupPath + "\\img\\" + ds[i].GameID + ".jpg");
         listMember a     = new listMember();
         a.gameLogo     = gì_đó;
         a.gameTitle    = ds[i].GameTitle;
         a.gamePrice    = ds[i].GamePrice;
         a.gameVersion  = ds[i].GameVersion;
         a.releaseDate  = ds[i].ReleaseDate;
         a.gameCategory = ds[i].GameCategory;
         pnDisplay.Controls.Add(a);
         checkHienThi = false;
     }
 }