示例#1
0
 private void SetList(ChapterCollection chapters)
 {
     if (lbChuong.InvokeRequired)
     {
         Invoke(new SetListDelegate(SetList), new object[] { chapters });
     }
     else
     {
         lbChuong.Items.Clear();
         foreach (Chapter chapter in chapters)
         {
             lbChuong.Items.Add(chapter.Id.ToString() + " - " + chapter.Name);
         }
     }
 }
示例#2
0
 public Novel()
 {
     Chapters    = new ChapterCollection();
     HtmlDoc     = new HtmlAgilityPack.HtmlDocument();
     Downloading = 0;
 }