protected void OnProcessProgress(ProcessProgressEventArgs e) { var eh = this.ProcessProgress; if (eh != null) { eh(this, e); } }
void CommandService_Completed(object sender, EventArgs e) { var ea = new ProcessProgressEventArgs(Properties.Resources.Completed, 1); _ProcessProgressExecutedEventArgsList.Add(ea); this.ProgressListBox.ScrollIntoView(ea); _IsExecuting = false; this.QuitButton.IsEnabled = true; }
protected void OnProcessProgress(ProcessProgressEventArgs e) { var eh = this.ProcessProgress; if (eh != null) { if (this.Dispatcher == null) { eh(this, e); } else { this.Dispatcher.Invoke(() => eh(this, e)); } } }
void CommandService_ProcessProgress(object sender, ProcessProgressEventArgs e) { _ProcessProgressExecutedEventArgsList.Add(e); this.ProgressListBox.ScrollIntoView(e); }