public void UpdateProgress(ProcessingProgressEventArgs e) { if (!InvokeRequired) { ProgressBarLabel.Text = e.ProcessingTask; ProcessingProgressBar.Value = e.PercentComplete; } else { Invoke(new Action <ProcessingProgressEventArgs>(UpdateProgress), e); } }
private void _image_processing_ProcessingProgressChangedEvent(object sender, ProcessingProgressEventArgs e) { UpdateProgress(e); }