/// <summary>
 /// An event handler called when the spider began crawling the standard feeds.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnFeedsCrawlStarted(object sender, SpiderInfoEventArgs<SpiderStandardFeeds.CrawlInfo> e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
             // Set the progress bar.
             //this.progressBar.Maximum = feeds.Count;
             //this.labelProgress.Text = "Crawling {0} standard feeds.".FormatWith(feeds.Count);
             // Suspend the list box progress events.
             this.progressListBox.SuspendProgressEvents();
             // Reset the progress items count.
             foreach (ProgressItem item in this.progressItems)
             {
                 item.Progress.Count = 0;
             }
             // Update the progress list box.
             foreach (KeyValuePair<string, DbObjectStandardFeed> feed in e.Info.Feeds)
             {
                 // Increment the progress count for each feed.
                 this.progressItems[feed.Value.FeedId].Progress.Count++;
             }
             // Resume the list box progress events.
             this.progressListBox.ResumeProgressEvents();
         });
 }
 /// <summary>
 /// An event handler called when the spider starts crawling a standard feed.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnFeedCrawlStarted(object sender, SpiderInfoEventArgs<SpiderStandardFeeds.FeedStartedInfo> e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
             // Update the progress label.
             //this.labelProgress.Text = "Crawling feed {0} of {1} started.".FormatWith(index, count);
         });
 }
 /// <summary>
 /// An event handler called when the spider finished crawling the standard feeds.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnFeedsCrawlFinished(object sender, SpiderInfoEventArgs<SpiderStandardFeeds.CrawlInfo> e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
             // Set the progress bar.
             //this.progressBar.Value = feeds.Count;
             //this.labelProgress.Text = "Crawling {0} standard feeds finished.".FormatWith(feeds.Count);
         });
 }
 /// <summary>
 /// An event handler called when the spider finishes crawling a standard feed.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnFeedCrawlFinished(object sender, SpiderInfoEventArgs<SpiderStandardFeeds.FeedFinishedInfo> e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
         });
 }