Exemplo n.º 1
0
        /// <summary>
        /// 请求频道名称
        /// </summary>
        private void GetChannelList()
        {
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[2];
            mContent[0].eName    = CEnum.TagName.ServerInfo_GameDBID;
            mContent[0].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[0].oContent = 2;

            mContent[1].eName    = CEnum.TagName.ServerInfo_GameID;
            mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[1].oContent = m_ClientEvent.GetInfo("GameID_FJ");

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

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

            tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_FJ.GetItemAddr(mChannelInfo, CmbServer.Text));
        }
        private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CmbServer = Operation_FJ.BuildCombox(mServerInfo, CmbServer);


            tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_FJ.GetItemAddr(mServerInfo, CmbServer.Text));
        }
Exemplo n.º 3
0
        private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CmbServer = Operation_FJ.BuildCombox(mServerInfo, CmbServer);

            LblUser.Text = "";
            //PnlInput.Visible = true;
            GrdList.DataSource = null;
            PnlPage.Visible    = false;
            tmp_ClientEvent    = m_ClientEvent.GetSocket(m_ClientEvent, Operation_FJ.GetItemAddr(mServerInfo, CmbServer.Text));
        }
Exemplo n.º 4
0
 private void backgroundWorkerType_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.CmbType = Operation_FJ.BuildCombox(mType, CmbType);
 }