Пример #1
0
 void ProcessingProgress(object sender, MyProgressChangedEventArgs e)
 {
     var locals = new MyProgressChangedEventArgs(e.ProgressPercentage, null, e.ProcessedFiles);
     CodeSite.Send("processingProgress", locals.ToString());
     _uiThreadMarshaller.Post(state => _fileBuilderView.SetProgress(locals.ProgressPercentage, locals.ProcessedFiles), null);
 }
Пример #2
0
 private void OnFileProcessingProgress(MyProgressChangedEventArgs progressChangedEventArgs)
 {
     EventHandler<MyProgressChangedEventArgs> fileProcessingProgress = FileProcessingProgress;
     if (fileProcessingProgress != null)
     {
         fileProcessingProgress(this, progressChangedEventArgs);
     }
 }