private void backgroundWorkCharinfo_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_Soccer.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SOCCER_CHARACTERINFO_QUERY, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkInsertItem_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_Soccer.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SOCCER_ITEMSHOP_INSERT, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkPage_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_Soccer.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SOCCER_ACCOUNT_ITEMSKILL_QUERY, (CEnum.Message_Body[])e.Argument); } }
private void SerchUserinfo() { BtnSearch.Enabled = false; this.Cursor = Cursors.WaitCursor; bFirst = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.Soccer_SenderUserName; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtReciveAccount.Text; mContent[1].eName = CEnum.TagName.Soccer_item_type; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = FindItemType(cbtype.Text.Trim()); mContent[2].eName = CEnum.TagName.Soccer_ServerIP; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = Operation_Soccer.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_Soccer.iPageSize; this.backgroundWorkFrmCharinfo.RunWorkerAsync(mContent); }
private void InsertItem() { btnAdd.Enabled = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[8]; mContent[0].eName = CEnum.TagName.UserByID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[1].eName = CEnum.TagName.Soccer_loginId; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = txtaccont.Text.Trim(); mContent[2].eName = CEnum.TagName.Soccer_ServerIP; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); mContent[3].eName = CEnum.TagName.Soccer_charidx; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = currSelectPSTID; mContent[4].eName = CEnum.TagName.Soccer_charname; mContent[4].eTag = CEnum.TagFormat.TLV_STRING; mContent[4].oContent = txtchar.Text.Trim(); if (!this.checkBoxQuery.Checked) { mContent[5].eName = CEnum.TagName.Soccer_idx; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = GetItemIdx(CmbItem.Text.Trim()); } else { mContent[5].eName = CEnum.TagName.Soccer_idx; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = Convert.ToInt32(((ArrayList)lstItem.Tag)[lstItem.SelectedIndex]); } mContent[6].eName = CEnum.TagName.Soccer_title; mContent[6].eTag = CEnum.TagFormat.TLV_STRING; mContent[6].oContent = txttitle.Text.Trim(); mContent[7].eName = CEnum.TagName.Soccer_content; mContent[7].eTag = CEnum.TagFormat.TLV_STRING; mContent[7].oContent = TxtMemo.Text.Trim(); backgroundWorkInsertItem.RunWorkerAsync(mContent); //lock (typeof(C_Event.CSocketEvent)) //{ // mResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SOCCER_ITEMSHOP_INSERT, C_Global.CEnum.Msg_Category.SOCCER_ADMIN, mContent); //} }
private void ReadFromAccount() { if (TxtReciveAccount.Text.ToString().Trim().Length == 0) { MessageBox.Show(config.ReadConfigValue("MSOCCER", "FAA_Code_msginfo")); return; } else { BtnSearch.Enabled = false; tabPlayerControl.Enabled = false; this.SendGrid.Cursor = Cursors.WaitCursor; string currUserAccount = TxtReciveAccount.Text.ToString().Trim(); C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[3]; messageBody[0].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[0].eName = C_Global.CEnum.TagName.Soccer_ServerIP; messageBody[0].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); messageBody[1].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[1].eName = C_Global.CEnum.TagName.Soccer_String; messageBody[1].oContent = currUserAccount; messageBody[2].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[2].eName = C_Global.CEnum.TagName.Soccer_Type; messageBody[2].oContent = "uID"; this.backgroundWorkCharinfo.RunWorkerAsync(messageBody); } //accountResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SOCCER_CHARACTERINFO_QUERY, C_Global.CEnum.Msg_Category.SOCCER_ADMIN, messageBody); //if (accountResult[0, 0].eName == CEnum.TagName.ERROR_Msg) //{ // MessageBox.Show(accountResult[0, 0].oContent.ToString()); // dpNoteText.Visible = false; //隐藏信息提示 // dpModi.Visible = false; //隐藏信息修改 // dgAccountInfo.DataSource = null; // txtAccount.Clear(); // return; //} //dgAccountInfo.DataSource = BrowseResultInfo(); //设置datagrid数据源 ////dpDataGrid.Visible = true; //显示datagrid容器 //dpNoteText.Visible = true; //显示文本提示 }
private void BtnSearch_Click(object sender, EventArgs e) { if (CmbServer.Text == "") { return; } if (TxtAccount.Text.Trim().Length > 0) { //BtnSearch.Enabled = false; //Cursor = Cursors.AppStarting; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.Soccer_String; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtAccount.Text; mContent[1].eName = CEnum.TagName.Soccer_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); //this.backgroundWorkerSearch.RunWorkerAsync(mContent); CEnum.Message_Body[,] mResult = null; lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_Soccer.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SOCCER_ACCOUNTACTIVE_QUERY, mContent); } if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } if (mResult[0, 0].oContent.ToString().Equals("SUCCESS")) { //LblStatus.Text = "玩家" + TxtAccount.Text.Trim() + "在服务器" + CmbServer.Text.Trim()+ "已经激活"; LblStatus.Text = config.ReadConfigValue("MSOCCER", "FAA_Code_lbltxtsuccess").Replace("{user}", TxtAccount.Text.Trim()).Replace("{server}", CmbServer.Text.Trim()); } else { //LblStatus.Text = "玩家" + TxtAccount.Text.Trim() + "在服务器" + CmbServer.Text.Trim() + "暂时还未激活"; LblStatus.Text = config.ReadConfigValue("MSOCCER", "FAA_Code_lbltxtfailed").Replace("{user}", TxtAccount.Text.Trim()).Replace("{server}", CmbServer.Text.Trim()); } } else { MessageBox.Show(config.ReadConfigValue("MSOCCER", "FCI_Code_InputAccount")); } }
private void ItmDelete_Click(object sender, EventArgs e) { DataTable mBoard = (DataTable)GrdResult.DataSource; this.GrdResult.Cursor = Cursors.WaitCursor; int inttype = -1; if (mBoard.Rows[iIndexID][3].ToString().Trim().Equals(config.ReadConfigValue("MSOCCER", "FCE_Code_Skill"))) { inttype = 0; } else { inttype = 1; } CEnum.Message_Body[] mContent = new CEnum.Message_Body[7]; mContent[0].eName = CEnum.TagName.Soccer_charidx; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = Convert.ToInt32(mBoard.Rows[iIndexID][0].ToString()); mContent[1].eName = CEnum.TagName.Soccer_item_type; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = inttype; mContent[2].eName = CEnum.TagName.Soccer_idx; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = Convert.ToInt32(mBoard.Rows[iIndexID][4].ToString()); mContent[3].eName = CEnum.TagName.Soccer_item_equip; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = FindItemEquip(mBoard.Rows[iIndexID][3].ToString(), mBoard.Rows[iIndexID][6].ToString()); mContent[4].eName = CEnum.TagName.Soccer_deleted_date; mContent[4].eTag = CEnum.TagFormat.TLV_STRING; mContent[4].oContent = "Gmtools"; mContent[5].eName = CEnum.TagName.UserByID; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[6].eTag = C_Global.CEnum.TagFormat.TLV_STRING; mContent[6].eName = C_Global.CEnum.TagName.Soccer_ServerIP; mContent[6].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); this.backgroundWorkDel.RunWorkerAsync(mContent); //mResult = Operation_Soccer.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SOCCER_ITEM_SKILL_MODIFY, (CEnum.Message_Body[])e.Argument); }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (this.backgroundWorkerSerch.IsBusy) { return; } if (bFirst) { this.CmbPage.Enabled = false; this.Cursor = Cursors.WaitCursor; C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[5]; messageBody[0].eName = CEnum.TagName.Soccer_SenderUserName; messageBody[0].eTag = CEnum.TagFormat.TLV_STRING; messageBody[0].oContent = TxtReciveAccount.Text; messageBody[1].eName = CEnum.TagName.Soccer_ReceiveUserName; messageBody[1].eTag = CEnum.TagFormat.TLV_STRING; messageBody[1].oContent = TxtSenderAccount.Text; messageBody[2].eName = CEnum.TagName.Soccer_ServerIP; messageBody[2].eTag = CEnum.TagFormat.TLV_STRING; messageBody[2].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); messageBody[3].eName = CEnum.TagName.Index; messageBody[3].eTag = CEnum.TagFormat.TLV_INTEGER; messageBody[3].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Soccer.iPageSize + 1; messageBody[4].eName = CEnum.TagName.PageSize; messageBody[4].eTag = CEnum.TagFormat.TLV_INTEGER; messageBody[4].oContent = Operation_Soccer.iPageSize; this.backgroundWorkerchange.RunWorkerAsync(messageBody); //CEnum.Message_Body[,] mResult = null; //lock (typeof(C_Event.CSocketEvent)) //{ // mResult = Operation_Soccer.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SOCCER_USERTRADE_QUERY, messageBody); //} //if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) //{ // MessageBox.Show(mResult[0, 0].oContent.ToString()); // return; //} //GrdResult.DataSource = null; //GrdResult.DataSource = ReturnPageResult(mResult); } }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[6]; messageBody[0].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[0].eName = C_Global.CEnum.TagName.Soccer_ServerIP; messageBody[0].oContent = _ServerIP; messageBody[1].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[1].eName = C_Global.CEnum.TagName.Soccer_String; messageBody[1].oContent = this.txtAccount.Text; messageBody[2].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[2].eName = C_Global.CEnum.TagName.Soccer_Type; messageBody[2].oContent = GetCRAction(); messageBody[3].eName = CEnum.TagName.Index; messageBody[3].eTag = CEnum.TagFormat.TLV_INTEGER; messageBody[3].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Soccer.iPageSize + 1; messageBody[4].eName = CEnum.TagName.PageSize; messageBody[4].eTag = CEnum.TagFormat.TLV_INTEGER; messageBody[4].oContent = Operation_Soccer.iPageSize; messageBody[5].eName = CEnum.TagName.Soccer_deleted_date; messageBody[5].eTag = CEnum.TagFormat.TLV_STRING; messageBody[5].oContent = "gmtools"; CEnum.Message_Body[,] mResult = null; mResult = Operation_Soccer.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SOCCER_CHARACTERSTATE_QUERY, messageBody); if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } dgAccountInfo.DataSource = null; dgAccountInfo.DataSource = ReturnPageResult(mResult); } }
private void backgroundWorkFrmLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { //检测状态 this.GrdResult.Cursor = Cursors.Default; if (mServerInfo[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg) { MessageBox.Show(mServerInfo[0, 0].oContent.ToString()); return; } //显示内容到列表 for (int i = 0; i < mServerInfo.GetLength(0); i++) { this.CmbServer.Items.Add(mServerInfo[i, 1].oContent.ToString()); } this.CmbServer.SelectedIndex = 0; tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text)); }
private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { //检测状态 if (serverIPResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg) { MessageBox.Show(serverIPResult[0, 0].oContent.ToString()); //Application.Exit(); return; } //显示内容到列表 for (int i = 0; i < serverIPResult.GetLength(0); i++) { this.cbxServerIP.Items.Add(serverIPResult[i, 1].oContent.ToString()); } this.cbxServerIP.SelectedIndex = 0; tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(serverIPResult, cbxServerIP.Text.Trim())); }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { if (this.backgroundWorkFrmCharinfo.IsBusy) { return; } this.CmbPage.Enabled = false; this.GrdResult.Cursor = Cursors.WaitCursor; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.Soccer_SenderUserName; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtReciveAccount.Text; mContent[1].eName = CEnum.TagName.Soccer_item_type; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = FindItemType(cbtype.Text.Trim()); mContent[2].eName = CEnum.TagName.Soccer_ServerIP; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Soccer.iPageSize + 1;; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_Soccer.iPageSize; this.backgroundWorkPage.RunWorkerAsync(mContent); } }
private void CmbServer_SelectedIndexChanged(object sender, EventArgs e) { tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text)); }
private void cbxServerIP_SelectedIndexChanged(object sender, EventArgs e) { tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(serverIPResult, cbxServerIP.Text)); }
private void CmbSort_SelectedIndexChanged(object sender, EventArgs e) { if (firstLoad != true) { CmbItem.Items.Clear(); CmbItem.Text = ""; int intType = -1; string strClass = "-1"; if (CmbType.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_FatGirl").Trim()) { intType = 0; } else if (CmbType.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_HighGirl").Trim()) { intType = 1; } else if (CmbType.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_NormalGirl").Trim()) { intType = 2; } else if (CmbType.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_FatBoy").Trim()) { intType = 8; } else if (CmbType.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_HighBoy").Trim()) { intType = 9; } else if (CmbType.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_NormalBoy").Trim()) { intType = 7; } if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_hair").Trim()) { strClass = "hair"; } else if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_face").Trim()) { strClass = "face"; } else if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_hands").Trim()) { strClass = "hands"; } else if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_upper").Trim()) { strClass = "upper"; } else if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_lower").Trim()) { strClass = "lower"; } else if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_feet").Trim()) { strClass = "feet"; } else if (CmbSort.Text.Trim() == config.ReadConfigValue("MSOCCER", "FCE_Code_backpack").Trim()) { strClass = "backpack"; } CEnum.Message_Body[] mItemContent = new CEnum.Message_Body[3]; mItemContent[0].eName = CEnum.TagName.Soccer_ServerIP; mItemContent[0].eTag = CEnum.TagFormat.TLV_STRING; mItemContent[0].oContent = Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text); mItemContent[1].eName = CEnum.TagName.Soccer_item_type; mItemContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mItemContent[1].oContent = intType; mItemContent[2].eName = CEnum.TagName.Soccer_body_part; mItemContent[2].eTag = CEnum.TagFormat.TLV_STRING; mItemContent[2].oContent = strClass; try { lock (typeof(C_Event.CSocketEvent)) { senceResult = null; senceResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SOCCER_ITEM_SKILL_QUERY, C_Global.CEnum.Msg_Category.SOCCER_ADMIN, mItemContent); } if (senceResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(senceResult[0, 0].oContent.ToString()); return; } for (int i = 0; i < senceResult.GetLength(0); i++) { CmbItem.Items.Add(senceResult[i, 1].oContent.ToString()); } CmbItem.SelectedIndex = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); } } //mItemInfo = Operation_Soccer.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SDO_ITEMSHOP_QUERY, mItemContent); }
private void BtnSearch_Click(object sender, EventArgs e) { if (CmbServer.Text == "") { return; } if (this.backgroundWorkerchange.IsBusy) { return; } GrdResult.DataSource = null; CmbPage.Items.Clear(); PnlPage.Visible = false; if (TxtSenderAccount.Text.Trim().Length > 0 || TxtReciveAccount.Text.Trim().Length > 0) { BtnSearch.Enabled = false; Cursor = Cursors.WaitCursor; bFirst = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.Soccer_SenderUserName; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtReciveAccount.Text; mContent[1].eName = CEnum.TagName.Soccer_ReceiveUserName; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = TxtSenderAccount.Text; mContent[2].eName = CEnum.TagName.Soccer_ServerIP; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = Operation_Soccer.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_Soccer.iPageSize; this.backgroundWorkerSerch.RunWorkerAsync(mContent); // lock (typeof(C_Event.CSocketEvent)) // { // mResult = Operation_Soccer.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, Operation_Soccer.GetItemAddr(mServerInfo, CmbServer.Text)), CEnum.ServiceKey.SOCCER_USERTRADE_QUERY, mContent); // } // if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) // { // MessageBox.Show(mResult[0, 0].oContent.ToString()); // return; // } // //Operation_Soccer.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount); // GrdResult.DataSource = BrowseResultInfo(); //设置datagrid数据源 // CmbPage.Items.Clear(); // iPageCount = int.Parse(mResult[0, 8].oContent.ToString()); // 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("MSOCCER", "FCI_Code_InputAccount")); } }