Exemple #1
0
 /// <summary>
 /// Called during file downloads to update status
 /// </summary>
 /// <param name="bytesSoFar"></param>
 /// <param name="totalBytes"></param>
 private void DownloadProgressCallback(int bytesSoFar, int totalBytes)
 {
     if (totalBytes != -1)
     {
         SetDownloadStatus d = new SetDownloadStatus(SafeDownloadProgressCallback);
         this.Invoke(d, new object[] { bytesSoFar, totalBytes });
     }
 }
 /// <summary>
 /// Called during file downloads to update status
 /// </summary>
 /// <param name="bytesSoFar"></param>
 /// <param name="totalBytes"></param>
 private void DownloadProgressCallback(int bytesSoFar, int totalBytes)
 {
     if (totalBytes != -1)
     {
         SetDownloadStatus d = new SetDownloadStatus(SafeDownloadProgressCallback);
         this.Invoke(d, new object[] { bytesSoFar, totalBytes });
     }
 }