private void OnCallBack()
        {
            // 查看战队参赛人员
            LegendCupRegistKinData data = new LegendCupRegistKinData();

            data.lLegendCupID = m_lLegendCupID;
            data.nKinID       = m_nKinID;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_LEGENDCUP_KINMEMBER_REGIST_SHOW, data);
        }
Beispiel #2
0
        public override void OnMessage(WndMsgID msgID, UIMsgData data)
        {
            switch (msgID)
            {
            case WndMsgID.WND_MSG_LEGENDCUP_KINMEMBER_SHOW:
            {
                SetVisible(true);

                if (m_wndView != null)
                {
                    UIMsgCmdData cmdData = (UIMsgCmdData)data;
                    m_wndView.OnShowKinMemberWnd(cmdData.nParam);
                }
            }
            break;

            case WndMsgID.WND_MSG_LEGENDCUP_KINMEMBER_REGIST_SHOW:
            {
                SetVisible(true);
                if (m_wndView != null)
                {
                    LegendCupRegistKinData cmdData = (LegendCupRegistKinData)data;
                    m_wndView.OnOpenRegistKinMemberWnd(cmdData.lLegendCupID, cmdData.nKinID);
                }
            }
            break;

            case WndMsgID.WND_MSG_LEGENDCUP_REGIST_MEMBERLIST:
            {
                if (m_wndView != null)
                {
                    UIMsgCmdData cmdData = (UIMsgCmdData)data;
                    m_wndView.OnRecvRegistKinMemberList(cmdData.nParam);
                }
            }
            break;

            default:
                break;
            }
        }