예제 #1
0
 /// <summary>
 /// Raises ItemFailed event.
 /// </summary>
 /// <param name="eventArgs">event arguments</param>
 protected void onItemFailed(ItemDownloadEventArgs eventArgs)
 {
     if (this.ItemFailed != null)
     {
         this.ItemFailed(this, eventArgs);
     }
 }
예제 #2
0
 /// <summary>
 /// called when the download fails
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event arguments</param>
 void action_DownloadFailed(object sender, ItemDownloadEventArgs e)
 {
     _itemsFailed++;
     onItemFailed(e);
 }
예제 #3
0
 /// <summary>
 /// called when the download completes
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event arguments</param>
 void action_DownloadCompleted(object sender, ItemDownloadEventArgs e)
 {
     _itemsCompleted++;
     onItemDownloaded(e);
 }
예제 #4
0
 /// <summary>
 /// called when the download starts
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event arguments</param>
 void action_DownloadStarted(object sender, ItemDownloadEventArgs e)
 {
     onItemStarted(e);
 }