/// /// Creates and displays the error message. /// private DialogResult ShowThreadExceptionDialog(Exception ex) { string errorMessage = "错误信息:\n\n" + ex.Message + "\n\n" + ex.GetType() + "\n\nStack Trace:\n" + ex.StackTrace; SendErrInfo infoform = new SendErrInfo(errorMessage); return(infoform.ShowDialog()); }
private DialogResult ShowThreadExceptionDialog(Exception ex) { string errorMessage = string.Concat(new object[] { "错误信息:\n\n", ex.Message, "\n\n", ex.GetType(), "\n\nStack Trace:\n", ex.StackTrace }); SendErrInfo sendErrInfo = new SendErrInfo(errorMessage); return(sendErrInfo.ShowDialog()); }