Пример #1
0
 //Progress
 private decimal GetPercent(TransferProgressArgs e)
 {
     return (((decimal)1 / (decimal)e.TotalBytes) * (decimal)e.TransferredBytes) * 100;
 }
Пример #2
0
 private void ReportProgress(TransferProgressArgs args)
 {
     if (this.ProgressChanged != null)
     {
         this.ProgressChanged(args.PercentDone);
     }
 }