예제 #1
0
 private void WrapUpProcess(object sender, RunWorkerCompletedEventArgs e)
 {
     Debug.WriteLine("Finished With Chapter");
     Application.Current.Dispatcher.Invoke(() =>
     {
         Status = ChapterProcessingStatus.Processing;
     });
     _bgWorker = null;
 }
예제 #2
0
 private void ProcessLinkExecute(object obj)
 {
     //TODO Implement the ProcessLink Method
     Debug.WriteLine("ProcessLink Executed");
     Status = ChapterProcessingStatus.Waiting;
     ProcessLinkWebPage(obj.ToString());
 }
예제 #3
0
 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() {");
 }
예제 #4
0
 private void AllImagesDownloaded(object sender, RunWorkerCompletedEventArgs e)
 {
     Debug.Write("Chapeter Downloaded!");
     Application.Current.Dispatcher.Invoke(() =>
     {
         Status = ChapterProcessingStatus.Done;
     });
     _bgWorker = null;
 }