Esempio n. 1
0
        public ReaderView(BookItem B, Chapter C)
            : this()
        {
            BindChapter = C;

            Anchors = new AutoAnchor(B);
            CL      = new ChapterLoader(B, SetContent);
            OverrideParams(B);
        }
Esempio n. 2
0
        public void SetAutoAnchor()
        {
            // Set the autoanchor
            string AnchorId = new AutoAnchor(CurrentBook).GetAutoVolAnc();

            foreach (Volume V in Volumes)
            {
                foreach (Chapter C in V.Chapters)
                {
                    if (C.Meta[AppKeys.GLOBAL_CID] == AnchorId)
                    {
                        AutoAnchor = C;
                        goto EndLoop;
                    }
                }
            }

EndLoop:
            NotifyChanged("AnchorAvailable");
        }