示例#1
0
 private void AddChapters(TocItem parent, IList <EpubChapter> chapters)
 {
     foreach (EpubChapter chapter in chapters)
     {
         TocItem child = new TocItem(chapter.AbsolutePath.GetHashCode(), chapter.Title);
         parent.AddChild(child);
         AddChapters(child, chapter.SubChapters);
     }
 }
示例#2
0
 public void AddChild(TocItem item)
 {
     item.ParentConcrete = this;
     ChildrenConcrete.Add(item);
 }