Esempio n. 1
0
        private void OpenBook(BookItem Book)
        {
            ThisBook           = Book;
            Shared.CurrentBook = Book;

            PageProcessor.ReadSecondaryTile(Book);

            CacheStateStory.Begin();

            BookLoading = true;

            if (Book.IsEx())
            {
                Book.XSetProp("Mode", X.Const <string>(XProto.WProtocols, "ACTION_BOOK_META"));
            }

            BookLoader BL = new BookLoader(BookLoadComplete);

            BL.Load(Book, true);
            BL.LoadIntro(Book, true);
            BL.LoadCover(Book, true);

            SyncAnchors();
            SetContext();
        }
Esempio n. 2
0
        private void ReloadBtn_Click(object sender, RoutedEventArgs e)
        {
            if (BookLoading)
            {
                return;
            }
            BookLoading = true;

            CacheStateStory.Begin();
            BookLoader BL = new BookLoader(BookLoadComplete);

            BL.Load(ThisBook);
            BL.LoadIntro(ThisBook);
        }