/// <summary>
        /// 处理SDKCallException, 记录日志, 弹提示框
        /// </summary>
        /// <param name="ex"></param>
        /// <param name="operationName"></param>
        /// <param name="showMessageBox"></param>
        public static void Handle(Exception ex, string operationName, string captionName, ILog log, IInteractionService interactionService, bool showMessageBox = true)
        {
            if (string.IsNullOrEmpty(operationName))
            {
                return;
            }
            uint             errorCode    = 0;
            SDKCallException sdkException = ex as SDKCallException;

            if (sdkException != null)
            {
                errorCode = sdkException.ErrorCode;
            }
            string msg = string.Format("{0}出错: {1}, 错误码: {2}", operationName, ex.Message, errorCode);

            log.Error(msg, ex);
            Trace.WriteLine(msg + ex.ToString());

            msg = string.Format("{0}出错: {1}", operationName, ex.Message);
            if (showMessageBox)
            {
                interactionService.ShowMessageBox(msg, captionName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                Debug.Assert(false, msg);
            }
        }
        /// <summary>
        /// 处理SDKCallException, 记录日志, 弹提示框
        /// </summary>
        /// <param name="ex"></param>
        /// <param name="operationName"></param>
        /// <param name="showMessageBox"></param>
        public static void Handle(Exception ex, string operationName, bool showMessageBox = true)
        {
            if (string.IsNullOrEmpty(operationName))
            {
                return;
            }
            uint             errorCode    = 0;
            SDKCallException sdkException = ex as SDKCallException;

            if (sdkException != null)
            {
                errorCode = sdkException.ErrorCode;
            }
            string msg = string.Format("{0}出错: {1}, 错误码: {2}", operationName, ex.Message, errorCode);

            MyLog4Net.Container.Instance.Log.Error(msg, ex);

            msg = string.Format("{0}出错: {1}", operationName, ex.Message);
            if (showMessageBox)
            {
                Framework.Container.Instance.InteractionService.ShowMessageBox(msg, Framework.Environment.PROGRAM_NAME,
                                                                               MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                Debug.Assert(false, msg);
            }
        }