protected virtual void OnOuputReceived(OutputEventArgs e) { EventHandler<OutputEventArgs> handler = OutputReceived; if (handler != null) handler(this, e); }
private void OnOutputReceived(object sender, OutputEventArgs e) { OnResultsReceived(new ResultEventArgs(_definition.GetResultsForLine(e.Data))); }
private void OnOutputReceived(object sender, OutputEventArgs e) { if (this.Dispatcher.CheckAccess()) { RichTextBoxExHost.Child.Text += e.Data + Environment.NewLine; } else this.Dispatcher.Invoke(new Action<object, OutputEventArgs>(OnOutputReceived), sender, e); }