private void OnErrorReceived(object sender, ErrorEventArgs e) { if (this.Dispatcher.CheckAccess()) { RichTextBoxExHost.Child.Text += e.Data + Environment.NewLine; } else this.Dispatcher.Invoke(new Action<object, ErrorEventArgs>(OnErrorReceived), sender, e); }
private void OnErrorReceived(object sender, ErrorEventArgs e) { OnResultsReceived(new ResultEventArgs(_definition.GetResultsForLine(e.Data))); }