public void CreateFavItem(ContentData[] dataList)
 {
     if (ItemDetailPrefabs == null)
     {
         return;
     }
     ClearItemDetail();
     for (int i = 0; i < dataList.Length; i++)
     {
         GameObject itemDetail = (GameObject)GameObject.Instantiate(ItemDetailPrefabs);
         itemDetail.SetActive(true);
         itemDetail.transform.parent        = this.transform;
         itemDetail.transform.localPosition = new Vector3(0, -i * DetailLength, 0);
         FavItem idt = itemDetail.GetComponent <FavItem>();
         idt.SetContentData(ContentPageFile.ModifiedDataForLoad(dataList[i]));
         idt.ReadMoreButton.box = this.GetComponent <Collider2D>();
         idt.WebButton.box      = this.GetComponent <Collider2D>();
         idt.DeleteButton.box   = this.GetComponent <Collider2D>();
         itemDetailList.Add(itemDetail.GetComponent <FavItem>());
     }
     if (dataList.Length == 0)
     {
         TextData.text = "ไม่พบข้อมูล";
     }
     else
     {
         TextData.text = "จำนวนข้อมูลที่ถูกจัดเก็บ  " + dataList.Length + "/" + PageDetailGlobal.pGlobal.file.maxContent + "  เรื่อง";
     }
 }
 private void Library_Load(object sender, EventArgs e)
 {
     for (int i = 0; i < Bookmarking.GetItemsCount(); i++)
     {
         FavItem toadd = new FavItem();
         toadd.Import(Bookmarking.Name(i), Bookmarking.Url(i), Bookmarking.ImageToBase64(Bookmarking.Favicon(i), System.Drawing.Imaging.ImageFormat.Png));
         FavData.Add(toadd);
     }
     for (int i = 0; i < History.GetItemsCount(); i++)
     {
         HisItem toadd = new HisItem();
         toadd.Import(History.Name(i), History.Url(i), History.Date(i), Bookmarking.ImageToBase64(History.Favicon(i), System.Drawing.Imaging.ImageFormat.Png));
         HistoryData.Add(toadd);
     }
     historydatagridview.DataSource = HistoryData;
     bookmarksdatagridview.DataSource = FavData;
 }