/// <summary> /// 显示一个错误对话框 /// </summary> /// <param name="ex">错误的异常信息</param> /// <param name="email">可选参数,Email地址</param> public static void ShowError(Exception ex, string email = "") { MapWinGIS.Utility.Logger.Dbg(ex.ToString()); CustomExceptionHandler.SendNextToEmail = email; CustomExceptionHandler.OnThreadException(ex); }