Example #1
0
 protected virtual void OnDownloadLengthChangedHandler(object sender,
                                                       DownloadLengthChangedEventArgs args)
 {
     lock (syncRoot)
     {
         TotalLength -= args.PreviousLength;
         TotalLength += args.CurrentLength;
     }
 }
 protected virtual void OnDownloadLengthChangedHandler(object sender,
         DownloadLengthChangedEventArgs args)
 {
     lock (syncRoot)
     {
         TotalLength -= args.PreviousLength;
         TotalLength += args.CurrentLength;
     }
 }