public void setDataShow(List <NewItem> datas, CommonObjectScript common)
 {
     this.common = common;
     setSeat(datas.Count);
     for (int i = 0; i < datas.Count; i++)
     {
         if (datas[i].type.Equals("field"))
         {
             #region field/cage
             if (datas[i].id == 2)//cage
             {
                 tempStr = "Common/Images/chuong" + datas[i].level;
                 listTextures[i].mainTexture = Resources.Load(tempStr) as Texture;
                 setSize(i, 180, 90);
             }
             else if (datas[i].id == 1)
             {
                 tempStr = "dat" + datas[i].level;
                 listTextures[i].gameObject.SetActive(false);
                 listSprites[i].gameObject.SetActive(false);
                 listSprites[i].spriteName = tempStr;
                 setSize(i, 150, 80);
             }
             else
             {
                 tempStr = "chuongca" + datas[i].level;
                 listTextures[i].gameObject.SetActive(false);
                 listSprites[i].gameObject.SetActive(false);
                 listSprites[i].spriteName = tempStr;
                 setSize(i, 120, 120);
             }
             #endregion
         }
         else if (datas[i].type.Equals("breed"))
         {
             #region breed
             tempStr = Breed.getName(datas[i].id);
             listTextures[i].mainTexture = Resources.Load("Farm/Icon/" + datas[i].id + "." + tempStr) as Texture;
             setSize(i, 120, 120);
             #endregion
         }
         else if (datas[i].type.Equals("machine"))
         {
             #region machine
             tempStr = "Factory/Button/Images/Machine/" + datas[i].id + "-lv" + datas[i].level;
             listTextures[i].mainTexture = Resources.Load(tempStr) as Texture;
             setSize(i, 150, 150);
             #endregion
         }
         else if (datas[i].type.Equals("staff"))
         {
             #region staff
             tempStr = "Town/fullavatarStaff/" + staffNames[datas[i].id - 1] + datas[i].level;
             listTextures[i].mainTexture = Resources.Load(tempStr) as Texture;
             setSize(i, (datas[i].id == 4 ? 75 : 90), 140);
             #endregion
         }
         else if (datas[i].type.Equals("product"))
         {
             #region product
             tempStr = "0" + (datas[i].id - 7).ToString();
             if (tempStr.Length == 3)
             {
                 tempStr = tempStr.Substring(1);
             }
             tempStr = "Factory/Button/Images/Product/" + tempStr;
             listTextures[i].mainTexture = Resources.Load(tempStr) as Texture;
             setSize(i, 120, 120);
             #endregion
         }
         else if (datas[i].type.Equals("building"))
         {
             #region building
             tempStr = "Town/Deco/" + houseNames[datas[i].id] + "/1";
             listTextures[i].mainTexture = Resources.Load(tempStr) as Texture;
             setSize(i, 105, 130);
             #endregion
         }
         else
         {
             #region method
             if (datas[i].id / 10 == 2)
             {
                 listTextures[i].mainTexture = methodMultimedia[datas[i].id % 10];
             }
             else
             {
                 listTextures[i].mainTexture = methodResearchs[datas[i].id % 10];
             }
             setSize(i, 128, 91);
             #endregion
         }
     }
 }