public ChapterViwer(EbookSplited ebookSplited, int chapter) : this() { EbookSplited = ebookSplited; Chapter = chapter; txtContent.Text = string.Join('\n', EbookSplited.Ebook.GetContentElements(Chapter).Take(3)); Update(); }
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;