private void _shell_PipelineErrorRaised(object sender, PipelineErrorEventArg arg) { Dispatcher.Invoke(() => { StatusText.Text = "Error"; Progress.IsIndeterminate = false; StatusLedColor(Colors.Red); _shell = null; }); }
/// <summary> /// Triggered when an error happened at the pipeline object level /// </summary> /// <param name="sender"></param> /// <param name="arg"></param> void poshEngine_PipelineErrorRaised(object sender, PipelineErrorEventArg arg) { PipelineStatusTextBlock.Dispatcher.Invoke(new Action(() => RaisePipelineError(arg.Error))); }