public ReaderView(BookItem B, Chapter C) : this() { BindChapter = C; Anchors = new AutoAnchor(B); CL = new ChapterLoader(B, SetContent); OverrideParams(B); }
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"); }