Beispiel #1
0
    /// <summary>
    /// 显示服务回调错误信息。
    /// </summary>
    /// <param name="offset">语言表分段偏移量。</param>
    /// <param name="errorId">错误码。</param>
    /// <param name="args">错误信息填充内容。</param>
    public static void RespError(Mogo.Game.LangOffset offset, int errorId, params object[] args)
    {
        var errorCode = (int)offset + errorId;
        var content   = LanguageData.dataMap.GetValueOrDefault(errorCode, new LanguageData()
        {
            content = String.Format(ERROR_CODE_DEFAULT, errorCode)
        });

        MogoMessageBox.Info(content.Format(args));
    }
Beispiel #2
0
 /// <summary>
 /// 显示服务回调错误信息。
 /// </summary>
 /// <param name="offset">语言表分段偏移量。</param>
 /// <param name="errorId">错误码。</param>
 public static void RespError(Mogo.Game.LangOffset offset, int errorId)
 {
     RespError(offset, errorId, String.Empty);
 }