Esempio n. 1
0
        /// <summary>
        /// 收到重连消息
        /// </summary>
        /// <param name="msg"></param>
        private void RespReconnect(MsgData msg)
        {
            MainPanelMgr.Instance.HideDialog("UIWaitDialog");
            MsgData_sReconnect data = msg as MsgData_sReconnect;

            if (null == data)
            {
                return;
            }

            if (data.Result == 0)//重连成功
            {
                UITips.ReconnectSwitchLine();
            }
            else if (data.Result == 1)//认证失败
            {
                UITips.ShowTipsDialog("提示", "认证失败,请重新登录", "确定", RequestToLogin, null, null);
            }
            else if (data.Result == 2)//重连失败
            {
                UITips.ShowTipsDialog("提示", "您已经断开连接,请重新登录", "确定", RequestToLogin, null, null);
            }
            else if (data.Result == 3)
            {
                UITips.ShowTipsDialog("提示", "连接失败,请重新登录", "确定", RequestToLogin, null, null);
            }
        }