Example #1
0
        public void onDeleteSession(SNSDeleteSessionMsgData msgData)
        {
            if (msgData.dwUserID == 0)
            {
                Debug.LogWarning("onDeleteSession,msgData.dwUserID == 0");
                return;
            }

            int userID = msgData.dwUserID;

            if (m_SessionList.ContainsKey(userID) == false)
            {
                return;
            }

            m_SessionList.Remove(userID);

            // 取第一个session为当前的
            if (m_SessionList.Count > 0)
            {
                m_CurSessionID = m_SessionList.Keys.First <long>();
            }
            else
            {
                m_CurSessionID = 0;
                onCloseWnd();
            }

            onUpdateView();
        }
Example #2
0
        public void onCloseBtnClick()
        {
            SNSDeleteSessionMsgData msgData = new SNSDeleteSessionMsgData();

            msgData.msgID    = (int)WndMsgID.WND_MSG_SNS_DELETE_SESSION;
            msgData.dwUserID = item.UserID;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_SNS_DELETE_SESSION, msgData);
        }