예제 #1
0
 /// <summary>
 /// Invokes the <see cref="FilePartDownloaded">FilePartDownloaded</see> event.
 /// </summary>
 /// <remarks>
 /// <para><b>Note to Inheritors:</b> The suggested way to hook the <b>FilePartDownloaded</b> event is to override this method.  However, to
 /// ensure that the event is called and all listeners receive it, be certain to call the base implementation as well.</para>
 /// </remarks>
 /// <param name="e">The download status for this file.</param>
 protected virtual void OnFilePartDownloaded(DownloadStatusEventArgs e)
 {
     if (FilePartDownloaded != null)
     {
         FilePartDownloaded(this, e);
     }
 }
예제 #2
0
 /// <summary>
 /// Invokes the <see cref="FilePartDownloaded">FilePartDownloaded</see> event.
 /// </summary>
 /// <remarks>
 /// <para><b>Note to Inheritors:</b> The suggested way to hook the <b>FilePartDownloaded</b> event is to override this method.  However, to 
 /// ensure that the event is called and all listeners receive it, be certain to call the base implementation as well.</para>
 /// </remarks>
 /// <param name="e">The download status for this file.</param>
 protected virtual void OnFilePartDownloaded(DownloadStatusEventArgs e)
 {
     if (FilePartDownloaded != null)
         FilePartDownloaded(this, e);
 }
예제 #3
0
 void req_FilePartDownloaded(object sender, DownloadStatusEventArgs e)
 {
     bwDownload.ReportProgress(e.DownloadStatus * 100 / e.FileLength);
 }