private void BtnSearch_Click(object sender, EventArgs e)
        {
            /*
             * 清除上一次显示的内容
             */
            if (CmbServer.Text == "")
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "LO_Code_Msg1"));
                return;
            }

            BtnSearch.Enabled       = false;
            Cursor                  = Cursors.WaitCursor;
            RoleInfoView.DataSource = null;

            C_Global.CEnum.Message_Body[] mContent = new CEnum.Message_Body[2];

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

            mContent[1].eName    = CEnum.TagName.SDO_Account;
            mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[1].oContent = TxtAccount.Text.Trim();

            tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text));

            this.backgroundWorkerSearch.RunWorkerAsync(mContent);
        }
 private void backgroundWorkerTradePage_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_ITEMSHOP_TRADE_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerLogOff_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_USERINTEGRAL_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
        private void backgroundWorkerPageChanged_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result;
            if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mResult[0, 0].oContent.ToString());
                this.Cursor          = Cursors.Default;
                this.CmbPage.Enabled = true;
                return;
            }
            this.PnlPage.Visible = true;
            if (this.CmbPage.Items.Count == 0)
            {
                this.pageCount = int.Parse(mResult[0, 1].oContent.ToString());
                for (int i = 0; i < pageCount; i++)
                {
                    CmbPage.Items.Add(i + 1);
                }

                CmbPage.SelectedIndex = 0;
                bFirst = true;
            }
            Operation_SDO.BuildDataTable(tmp_ClientEvent, mResult, this.GrdResult, out this.pageCount);
            this.Cursor          = Cursors.Default;
            this.CmbPage.Enabled = true;
        }
        private void SearchTrade()
        {
            GrdResult.DataSource = null;
            CmbPage.Items.Clear();
            PnlPage.Visible = false;

            if (TxtAccount.Text.Trim().Length > 0 || txtItemname.Text.Trim().Length > 0)
            {
                this.BtnSearch.Enabled = false;
                this.Cursor            = Cursors.AppStarting;
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

                mContent[0].eName    = CEnum.TagName.SDO_SendUserID;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text.Trim();

                mContent[1].eName    = CEnum.TagName.SDO_ReceiveNick;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = txtItemname.Text.Trim();

                mContent[2].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

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

                mContent[4].eName    = CEnum.TagName.PageSize;
                mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[4].oContent = Operation_SDO.iPageSize;

                this.backgroundWorkerTrade.RunWorkerAsync(mContent);
            }
        }
 private void backgroundWorkerPageChanged_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.CmbPage.Enabled             = true;
     this.Cursor                      = Cursors.Default;
     CEnum.Message_Body[,] mGetResult = (CEnum.Message_Body[, ])e.Result;
     Operation_SDO.BuildDataTable(this.m_ClientEvent, mGetResult, GrdResult, out iPageCount);
 }
 private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_QueryPunishusertimes_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
Beispiel #8
0
 private void backgroundWorkerUnFreeze_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_ACCOUNT_OPEN, (CEnum.Message_Body[])e.Argument);
     }
 }
Beispiel #9
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.textBox1.Text.Trim() != "")
            {
                this.UseWaitCursor = true;
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];
                mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[1].eName    = CEnum.TagName.SDO_Account;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = textBox1.Text;

                mContent[2].eName    = CEnum.TagName.UserByID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                mContent[3].eName    = CEnum.TagName.SDO_REASON;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = "";

                this.backgroundWorkerStatusQuery.RunWorkerAsync(mContent);
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MAU", "BU_Code_msg9"));
            }
        }
Beispiel #10
0
        private void Btn_Search_Click(object sender, EventArgs e)
        {
            if (CmbServer.Text == "")
            {
                return;
            }
            PnlPage.Visible    = false;
            LblUser.Text       = "";
            PnlInput.Visible   = true;
            GrdList.DataSource = null;
            Btn_Search.Enabled = false;
            bFirst             = false;
            this.Cursor        = Cursors.AppStarting;

            CmbPage.Items.Clear();
            TbcResult.SelectedTab = TpgList;

            CEnum.Message_Body[] mContent = new CEnum.Message_Body[3];

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

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

            mContent[2].eName    = CEnum.TagName.PageSize;
            mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[2].oContent = Operation_SDO.iPageSize;

            this.backgroundWorkerSearch.RunWorkerAsync(mContent);

            //CEnum.Message_Body[,] mGetResult = Operation_SDO.GetResult(m_ClientEvent.GetSocket(m_ClientEvent,Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SDO_MEMBERBANISHMENT_QUERY, mContent);

            ////无内容显示
            //if (mGetResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            //{
            //    MessageBox.Show(mGetResult[0, 0].oContent.ToString());
            //    return;
            //}

            //Operation_SDO.BuildDataTable(this.m_ClientEvent, mGetResult, GrdList, out iPageCount);

            //if (iPageCount <= 0)
            //{
            //    PnlPage.Visible = false;
            //}
            //else
            //{
            //    for (int i = 0; i < iPageCount; i++)
            //    {
            //        CmbPage.Items.Add(i+1);
            //    }

            //    CmbPage.SelectedIndex = 0;
            //    bFirst = true;
            //    PnlPage.Visible = true;
            //}
        }
Beispiel #11
0
 private void backgroundWorkerFreeze_DoWork(object sender, DoWorkEventArgs e)
 {
     CEnum.Message_Body[,] mResult;
     lock (typeof(C_Event.CSocketEvent))
     {
         mResult = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_MEMBERSTOPSTATUS_QUERY, (CEnum.Message_Body[])e.Argument);
     }
     if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
     {
         //MessageBox.Show("操作失败!");
         MessageBox.Show(mResult[0, 0].oContent.ToString());
         e.Result = "Error";
         return;
     }
     if (mResult[0, 0].eName == CEnum.TagName.SDO_StopStatus && mResult[0, 0].oContent.ToString() == "0")
     {
         lock (typeof(C_Event.CSocketEvent))
         {
             e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_ACCOUNT_CLOSE, (CEnum.Message_Body[])e.Argument);
         }
     }
     else
     {
         MessageBox.Show(config.ReadConfigValue("MSDO", "BA_Code_MsgUnoperation"));
         e.Result = "Error";
     }
 }
Beispiel #12
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 = 1;

            mContent[1].eName    = CEnum.TagName.ServerInfo_GameID;
            mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[1].oContent = m_ClientEvent.GetInfo("GameID_SDO");
            lock (typeof(C_Event.CSocketEvent))
            {
                mChannelInfo = Operation_SDO.GetServerList(this.m_ClientEvent, mContent);
            }
            if (mChannelInfo[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mChannelInfo[0, 0].oContent.ToString());
                return;
            }

            for (int i = 0; i < mChannelInfo.GetLength(0); i++)
            {
                TxtCode.Items.Add(mChannelInfo[i, 1].oContent.ToString());
            }
        }
        private void Frm_SDO_Shopping_Load(object sender, EventArgs e)
        {
            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 = 3;

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

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

            CmbServer = Operation_SDO.BuildCombox(mServerInfo, CmbServer);

            //货币类型
            CmbType.Items.Add(config.ReadConfigValue("MSDO", "SP_Code_Mtype"));
            CmbType.Items.Add(config.ReadConfigValue("MSDO", "SP_Code_Gtype"));
            CmbType.Items.Add(config.ReadConfigValue("MSDO", "SP_Code_Jifen"));
            CmbType.Items.Add(config.ReadConfigValue("MSDO", "SP_Code_Alltype"));

            CmbType.SelectedIndex = 0;

            PnlPage.Visible = false;
            LblTotal.Text   = "";
        }
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            txtTime.Text = "";

            //int noticeMin = Convert.ToInt32((DptEnd.Value - DptStart.Value).TotalMinutes);
            //if (noticeMin <= 0)
            //{
            //    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checktime"));
            //    return;
            //}

            if (TxtAccount.Text.Trim().Length > 0)
            {
                this.BtnSearch.Enabled = false;
                this.Cursor            = Cursors.AppStarting;
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[2];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);


                this.backgroundWorkerSearch.RunWorkerAsync(mContent);
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "CI_Code_inPutAccont"));
            }
        }
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                this.CmbPage.Enabled = false;
                this.Cursor          = Cursors.AppStarting;
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[2].eName    = CEnum.TagName.Index;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_SDO.iPageSize + 1;

                mContent[3].eName    = CEnum.TagName.PageSize;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = Operation_SDO.iPageSize;

                this.backgroundWorkerPageChanged.RunWorkerAsync(mContent);

                //CEnum.Message_Body[,] mGetResult = Operation_SDO.GetResult(m_ClientEvent.GetSocket(m_ClientEvent,Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SDO_MEMBERBANISHMENT_QUERY, mContent);

                //Operation_SDO.BuildDataTable(this.m_ClientEvent, mGetResult, GrdResult, out iPageCount);
            }
        }
Beispiel #16
0
 private void backgroundWorkerStatusQuery_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_MEMBERSTOPSTATUS_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
        private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CmbServer = Operation_SDO.BuildCombox(mServerInfo, CmbServer);

            PnlPage.Visible = false;
            tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text));
        }
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            GrdResult.DataSource = null;

            if (TxtAccount.Text.Trim().Length > 0)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[2];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

                CEnum.Message_Body[,] mResult = Operation_SDO.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SDO_FRIENDS_QUERY, mContent);

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                Operation_SDO.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "AF_Code_InputAccount"));
            }
        }
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            txtTime.Text = "";

            if (TxtAccount.Text.Trim().Length > 0)
            {
                this.BtnSearch.Enabled = false;
                this.Cursor            = Cursors.AppStarting;
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[2];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

                this.backgroundWorkerSearch.RunWorkerAsync(mContent);
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "CI_Code_inPutAccont"));
            }
        }
        private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
        {
            ArrayList paramList  = (ArrayList)e.Argument;
            ArrayList resultList = new ArrayList();

            lock (typeof(C_Event.CSocketEvent))
            {
                CEnum.Message_Body[,] mResult = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_USERMCASH_QUERY, (CEnum.Message_Body[])paramList[0]);
                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    e.Cancel = true;
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }
                resultList.Add(mResult);
                mResult = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_USERCHARAGESUM_QUERY, (CEnum.Message_Body[])paramList[1]);
                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    e.Cancel = true;
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }
                resultList.Add(mResult);
            }
            e.Result = resultList;
        }
 private void backgroundWorkerPageChanged_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(this.tmp_ClientEvent, CEnum.ServiceKey.SDO_GATEWAY_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
Beispiel #22
0
 private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(m_ClientEvent, CEnum.ServiceKey.SDO_BAOXIANGRate_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerClear_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_SDO.GetResult(this.tmp_ClientEvent, CEnum.ServiceKey.SDO_USERLOGIN_CLEAR, (CEnum.Message_Body[])e.Argument);
     }
 }
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            GrdResult.DataSource = null;
            CmbPage.Items.Clear();

            if (TxtSenderAccount.Text.Trim().Length > 0 || TxtReciveAccount.Text.Trim().Length > 0)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

                mContent[0].eName    = CEnum.TagName.SDO_SendUserID;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtReciveAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ReceiveNick;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = TxtSenderAccount.Text;

                mContent[2].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

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

                mContent[4].eName    = CEnum.TagName.PageSize;
                mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[4].oContent = Operation_SDO.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_SDO.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SDO_ITEMSHOP_TRADE_QUERY, mContent);

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                Operation_SDO.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);

                if (iPageCount <= 0)
                {
                    PnlPage.Visible = false;
                }
                else
                {
                    for (int i = 0; i < iPageCount; i++)
                    {
                        CmbPage.Items.Add(i + 1);
                    }

                    CmbPage.SelectedIndex = 0;
                    bFirst          = true;
                    PnlPage.Visible = true;
                }
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "TD_Code_Msg"));
            }
        }
        private void backgroundWorkerTrade_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            this.BtnSearch.Enabled        = true;
            this.Cursor                   = Cursors.Default;
            CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result;
            if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mResult[0, 0].oContent.ToString());
                return;
            }

            Operation_SDO.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);

            if (iPageCount <= 0)
            {
                PnlPage.Visible = false;
            }
            else
            {
                for (int i = 0; i < iPageCount; i++)
                {
                    CmbPage.Items.Add(i + 1);
                }

                CmbPage.SelectedIndex = 0;
                bFirst          = true;
                PnlPage.Visible = true;
            }
        }
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[6];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[2].eName    = CEnum.TagName.SDO_BeginTime;
                mContent[2].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[2].oContent = DtpBegin.Value;

                mContent[3].eName    = CEnum.TagName.SDO_EndTime;
                mContent[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[3].oContent = DtpEnd.Value;

                mContent[4].eName    = CEnum.TagName.Index;
                mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[4].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_SDO.iPageSize + 1;;

                mContent[5].eName    = CEnum.TagName.PageSize;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = Operation_SDO.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_SDO.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SDO_USERMCASH_QUERY, mContent);

                Operation_SDO.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);
            }
        }
        private void BtnLogOff_Click(object sender, EventArgs e)
        {
            if (this.CmbServer.Text == "")
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "LO_Code_Msg1"));
                return;
            }
            if (this.TxtAccount.Text.Trim() == "")
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "LO_Code_Msg2"));
                return;
            }
            txtjifen.Text = "";
            CEnum.Message_Body[] mContent1 = new CEnum.Message_Body[2];

            mContent1[0].eName    = CEnum.TagName.SDO_Account;
            mContent1[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent1[0].oContent = TxtAccount.Text.Trim();

            mContent1[1].eName    = CEnum.TagName.SDO_ServerIP;
            mContent1[1].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent1[1].oContent = Operation_SDO.GetItemAddr(mServerInfo, CmbServer.Text);
            this._ServerIP        = mContent1[1].oContent.ToString();

            //mContent1[2].eName = CEnum.TagName.UserByID;
            //mContent1[2].eTag = CEnum.TagFormat.TLV_INTEGER;
            //mContent1[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

            this.BtnLogOff.Enabled = false;
            this.Cursor            = Cursors.WaitCursor;

            this.backgroundWorkerLogOff.RunWorkerAsync(mContent1);
        }
        private void Frm_SDO_Close_Load(object sender, EventArgs e)
        {
            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_SDO");

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

            CmbServer = Operation_SDO.BuildCombox(mServerInfo, CmbServer);

            LblUser.Text       = "";
            PnlInput.Visible   = true;
            GrdList.DataSource = null;
            PnlPage.Visible    = false;
            txtBandays.Items.Add(config.ReadConfigValue("MSDO", "AF_Code_3day"));
            txtBandays.Items.Add(config.ReadConfigValue("MSDO", "AF_Code_7day"));
            txtBandays.Items.Add(config.ReadConfigValue("MSDO", "AF_Code_30day"));
            txtBandays.Items.Add(config.ReadConfigValue("MSDO", "AF_Code_Feverday"));
            txtBandays.SelectedIndex = 0;
        }
 private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mServerInfo = Operation_SDO.GetServerList(this.m_ClientEvent, (CEnum.Message_Body[])e.Argument);
     }
 }
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            if (this.TxtIP.Text.Trim() == "")
            {
                MessageBox.Show("请输入IP地址!");
                return;
            }
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];

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

            mContent[1].eName    = CEnum.TagName.SDO_Address;
            mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[1].oContent = this.TxtIP.Text.Trim();

            mContent[2].eName    = CEnum.TagName.PageSize;
            mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[2].oContent = this.pageSize;

            mContent[3].eName    = CEnum.TagName.Index;
            mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[3].oContent = this.pageIndex;

            this.backgroundWorkerSearch.RunWorkerAsync(mContent);
        }