Пример #1
0
        /// <summary>
        /// Cycle through the pages/sections listed in the spine, loading each into a webview which in turns returns the rendered text of the page / section
        /// </summary>
        private void GetAndLoadNextPage()
        {
            if (_filePathCounter == _epubFilePaths.Count) //reached the page limit, exit processing state
            {
                _busyProcessing = false;
                return;
            }

            string pageContent = _epubService.GetPageAsString(_epubFilePaths[_filePathCounter++]); //get the string content of the page / section (raw HTML)

            _browserService.LoadPage(pageContent);                                                 //load the html into a webview. The webview will raise an event once it's loaded and parsed.
        }