private void Frm_SDO_Pwd_Load(object sender, EventArgs e)
        {
            try
            {
                IntiFontLib();
                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 = 1;

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

                mServerInfo = Operation_RCode.GetServerList(this.m_ClientEvent, mContent);

                if (mServerInfo[0, 0].eName != CEnum.TagName.ERROR_Msg)
                {
                    CmbServer = Operation_RCode.BuildCombox(mServerInfo, CmbServer);
                    CmbServer.SelectedIndex = 0;
                }
            }
            catch
            { }

            BtnSearch.Enabled = false;
        }
        private void InitComboboxInfo()
        {
            try
            {
                CEnum.Message_Body[,] mResult = null;
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[5];


                mContent2[0].eName    = CEnum.TagName.RayCity_ItemName;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = textBox1.Text;


                mContent2[1].eName    = CEnum.TagName.Index;
                mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[1].oContent = 1;

                mContent2[2].eName    = CEnum.TagName.PageSize;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[2].oContent = Operation_RCode.iPageSize;

                mContent2[3].eName    = CEnum.TagName.RayCity_ItemID;
                mContent2[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[3].oContent = int.Parse(this.txtCode.Text);

                mContent2[4].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[4].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_ItemShop_Query, mContent2);
                }

                if (mResult.GetLength(1) == 3)
                {
                    for (int i = 0; i < mResult.GetLength(0); i++)
                    {
                        itemEx item1 = new itemEx(mResult[i, 0].oContent.ToString(), mResult[i, 1].oContent.ToString());
                        Operation_RCode.BuildCombox(mResult, CmbPlayerItem, ssd);

                        this.CmbPlayerItem.Items.Add(item1);
                    }
                    this.CmbPlayerItem.SelectedIndex = 0;
                }
                else
                {
                    MessageBox.Show("没有道具列表");
                }
            }
            catch (Exception ex)
            {
            }
        }
        private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CmbServer = Operation_RCode.BuildCombox(mServerInfo, CmbServer);

            tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text));
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[1];

            mContent[0].eName = CEnum.TagName.RayCity_ServerIP;
            mContent[0].eTag = CEnum.TagFormat.TLV_STRING;
            mContent[0].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text);

            CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_Skill_Query, mContent);

            if (result[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
             return;
            }
            else
            {
                this.CmbPlayerItem = Operation_RCode.BuildCombox(result, CmbPlayerItem, ssd);
            }
        }
 private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     CmbServer = Operation_RCode.BuildCombox(mServerInfo, CmbServer);
 }
Ejemplo n.º 5
0
 private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     CmbServer       = Operation_RCode.BuildCombox(mServerInfo, CmbServer);
     tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text));
 }