protected void OnProgress(ProgressEventArgs e)
 {
     if (this.Progress != null)
     {
         this.Progress(this, e);
     }
 }
 protected bool OnProgress(int progressPercentage)
 {
     if (this.Progress != null)
     {
         ProgressEventArgs e = new ProgressEventArgs(progressPercentage);
         this.Progress(this, e);
         return !e.Cancel;
     }
     return true;
 }
 private bool RaiseFileProgress(ref ProcessedSize processed)
 {
     if (this.FileProgressChanged != null)
     {
         int progressPercent = processed.ProgressPercent;
         if (progressPercent <= 100)
         {
             ProgressEventArgs e = new ProgressEventArgs(progressPercent);
             this.FileProgressChanged(this, e);
             return !e.Cancel;
         }
     }
     return true;
 }
 private void FileProgressChanged(object sender, ProgressEventArgs e)
 {
     this.FFileProgress = e.ProgressPercentage;
     e.Cancel = this.SkipFileRequested;
 }