private void Command_Progress(object sender, RasterCommandProgressEventArgs e) { _progressBarCommand.Value = e.Percent; if (Cancel) { e.Cancel = true; } Application.DoEvents(); }
void command_Progress(object sender, RasterCommandProgressEventArgs e) { _pbProgress.Value = e.Percent; }