private void HandleError(object sender, Gurock.SmartInspect.ErrorEventArgs e) { this.failureTextBox.Text = e.Exception.Message; this.failureTextBox.Text += "\r\n\r\nIf the SmartInspect Console is not " + "running, please start the SmartInspect Console and restart " + "this example application"; }
private void Si_Error(object sender, Gurock.SmartInspect.ErrorEventArgs e) { Console.WriteLine(e.Exception); if (e.Exception is LoadConfigurationException) { LoadConfigurationException le = (LoadConfigurationException)e.Exception; Console.WriteLine(le.FileName); } }