Beispiel #1
0
        /// <summary>
        /// 请求频道名称
        /// </summary>
        private void GetChannelList()
        {
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[1];

            mContent[0].eName    = CEnum.TagName.ServerInfo_GameID;
            mContent[0].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[0].oContent = 1;

            lock (typeof(C_Event.CSocketEvent))
            {
                mChannelInfo = Operation_JW2.GetGsServerList(this.m_ClientEvent, mContent);
            }
            if (mChannelInfo[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mChannelInfo[0, 0].oContent.ToString());
                return;
            }

            this.CmbServer = Operation_JW2.BuildCombox(mChannelInfo, CmbServer);
            bFirst         = true;

            tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_JW2.GetItemAddr(mChannelInfo, CmbServer.Text));
        }