Exemplo n.º 1
0
        public TableOfContents(ContentReaderBase MainReader)
            : this()
        {
            Reader = MainReader;

            if (Reader.CurrentBook == null)
            {
                Logger.Log(ID, "Cannot init TOC: CurrentBook is null... is pages unloaded ?", LogType.WARNING);
                return;
            }

            TOC = new TOCPane(Reader.CurrentBook.GetVolumes());

            TOCContext.DataContext = TOC;

            TOCList.SelectedItem = TOC.OpenChapter(Reader.CurrentChapter);
        }
Exemplo n.º 2
0
 public void UpdateDisplay()
 {
     TOCList.SelectedItem = TOC.OpenChapter(Reader.CurrentChapter);
 }