Пример #1
0
        public ChapterViwer(EbookSplited ebookSplited, int chapter) : this()
        {
            EbookSplited = ebookSplited;
            Chapter      = chapter;

            txtContent.Text = string.Join('\n', EbookSplited.Ebook.GetContentElements(Chapter).Take(3));
            Update();
        }
Пример #2
0
 public static ChapterViwer[] GetChapters(EbookSplited ebookSplited)
 {
     ChapterViwer[] chapters = new ChapterViwer[ebookSplited.Ebook.TotalChapters];
     for (int i = 0; i < chapters.Length; i++)
     {
         chapters[i] = new ChapterViwer(ebookSplited, i);
     }
     return(chapters);
 }
 public DummyEbookSpliter(EbookSplited ebook) => Ebook = ebook;