void ReportException(Exception e) { ExceptionPanel exPanel = new ExceptionPanel(); exPanel.MessageBox.Text = e.Message; exPanel.Title = "Parameter already has a data source."; }
private void ReportException(Exception e) { string errorMsg = e.InnerException != null ? e.InnerException.Message : e.Message; ExceptionPanel exPanel = new ExceptionPanel(); exPanel.MessageBox.Text = errorMsg; exPanel.Show(); //MessageBox.Show(errorMsg, e.GetType().Name, MessageBoxButton.OK); }
private void ReportException(Exception e) { ExceptionPanel exPanel = new ExceptionPanel(); exPanel.MessageBox.Text = e.Message; exPanel.Title = "Validation fail."; exPanel.Show(); }
/// <summary> /// Only report exception that says something about local file reading. /// </summary> /// <param name="e"></param> private void ReportException(Exception e) { //if (e is ArgumentException) //{ ExceptionPanel exPanel = new ExceptionPanel(); exPanel.MessageBox.Text = e.Message; exPanel.Title = "Warning!"; exPanel.Show(); //UpdateGateStatus(true); //still go ahead for warning sign //} }