private void WrapUpProcess(object sender, RunWorkerCompletedEventArgs e) { Debug.WriteLine("Finished With Chapter"); Application.Current.Dispatcher.Invoke(() => { Status = ChapterProcessingStatus.Processing; }); _bgWorker = null; }
private void ProcessLinkExecute(object obj) { //TODO Implement the ProcessLink Method Debug.WriteLine("ProcessLink Executed"); Status = ChapterProcessingStatus.Waiting; ProcessLinkWebPage(obj.ToString()); }
private void ProcessWebPage(object sender, DoWorkEventArgs e) { string address = e.Argument.ToString(); Application.Current.Dispatcher.Invoke(() => { this.Status = ChapterProcessingStatus.Processing; }); WebManager.GetGeneratedHTML(address, KickOffDownloadImageThread, "$(\"#divImage img\").load(function() {"); }
private void AllImagesDownloaded(object sender, RunWorkerCompletedEventArgs e) { Debug.Write("Chapeter Downloaded!"); Application.Current.Dispatcher.Invoke(() => { Status = ChapterProcessingStatus.Done; }); _bgWorker = null; }