/// <summary>
 /// An event handler called when the spider crawl has started.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnSpiderCrawlStarted(object sender, SpiderEventArgs e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
             // Set the progress.
             //this.progressBox.Progress.Reset();
             //this.progressBar.Value = 0;
             //this.labelProgress.Text = "Started.";
         });
 }
 /// <summary>
 /// An event handler called when the spider state has changed.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnSpiderStateChanged(object sender, SpiderEventArgs e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
             // Change the button state.
             this.buttonStart.Enabled = e.Spider.State == Spider.CrawlState.Stopped;
             this.buttonStop.Enabled = e.Spider.State == Spider.CrawlState.Running;
             this.buttonFeeds.Enabled = e.Spider.State == Spider.CrawlState.Stopped;
         });
 }
 /// <summary>
 /// An event handler called when the spider crawl has finished.
 /// </summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">The event arguments.</param>
 private void OnSpiderCrawlFinished(object sender, SpiderEventArgs e)
 {
     // Execute the code on the UI thread.
     this.Invoke(() =>
         {
             // Set the prgress.
             //this.progressBar.Value = this.progressBar.Maximum;
             //this.labelProgress.Text = "Finished.";
         });
 }