コード例 #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
ファイル: BnFtpRequestBase.cs プロジェクト: Mofsy/jinxbot
 /// <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
ファイル: FirstRunWizard.cs プロジェクト: Mofsy/jinxbot
 void req_FilePartDownloaded(object sender, DownloadStatusEventArgs e)
 {
     bwDownload.ReportProgress(e.DownloadStatus * 100 / e.FileLength);
 }