private void backgroundWorkerModiStrongLevel_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SD_Account_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerSearch_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpServer.Enabled = true; this.GrpNotice.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_GD.BuildDataTable(this.m_ClientEvent, mResult, GrdNotice, out iPageCount); if (iPageCount <= 1) { pnlNotice.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { cmbNotice.Items.Add(i + 1); } cmbNotice.SelectedIndex = 0; pageNotice = true; pnlNotice.Visible = true; } }
private void backgroundWorkerReSynthesisDrawingsQuery_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SD_Delete_ItemLog_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerPurchaseLog_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.tbcResult.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_GD.BuildDataTable(this.m_ClientEvent, mResult, GrdPurchaseResult, out iPageCount); if (iPageCount <= 1) { this.PnlPurchaseLog.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { this.CmbPurchaseLog.Items.Add(i + 1); } this.CmbPurchaseLog.SelectedIndex = 0; this.pagePurchaseInfo = true; this.PnlPurchaseLog.Visible = true; } }
private void backgroundWorkerReDistintegrationOfTheBody_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(m_ClientEvent, CEnum.ServiceKey.SD_LogInfo_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerAddMoney_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SD_UserAdditem_Add, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerCheckPwd_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SD_SearchPassWord_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerReGiftInfo_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SD_Grift_FromUser_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerAdjutantQuery_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.tbcResult.Enabled = true; 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.pnlAdjutant.Visible = false;//隐藏翻页功能 return; } Operation_GD.BuildDataTable(this.m_ClientEvent, mResult, GrdAdjutant, out iPageCount); if (iPageCount <= 0) { this.pnlAdjutant.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { this.CmbAdjutant.Items.Add(i + 1); } this.CmbAdjutant.SelectedIndex = 0; this.pageAdjutant = true; this.pnlAdjutant.Visible = true; } }
private void btnSearch_Click(object sender, EventArgs e) { try { this.GrdCharacter.DataSource = null; if (cmbServer.Text == "") { MessageBox.Show(config.ReadConfigValue("MSD", "UIA_Hint_selectServer")); return; } serverIP = Operation_GD.GetItemAddr(mServerInfo, cmbServer.Text); userName = txtAccount.Text.Trim(); userNick = txtNick.Text.Trim(); if (txtAccount.Text.Trim().Length > 0 || txtNick.Text.Trim().Length > 0) { PartInfo(); } else { MessageBox.Show(config.ReadConfigValue("MMagic", "UIA_Hint_inPutAccont")); return; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { mServerInfo = Operation_GD.GetServerList(this.m_ClientEvent, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerReStraightRanking_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SD_UserRank_query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerActiveCode_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(m_ClientEvent, CEnum.ServiceKey.SD_ActiveCode_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerEditNotice_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpServer.Enabled = true; this.GrpNotice.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); btnAddNotice.Enabled = true; btnAddNotice.Visible = true; btnEditNotice.Enabled = false; btnEditNotice.Visible = false; chbNoticeImmed.Checked = false; DptStartTime.Value = DateTime.Now; DptStartTime.Enabled = true; DptEndTime.Value = DateTime.Now; DptEndTime.Enabled = true; nudTimeSpan.Value = 1; nudTimeSpan.Enabled = true; cmbType.Items.Clear(); cmbType.Items.Add(config.ReadConfigValue("MSD", "NM_UI_cmbNoticeCheck")); cmbType.Items.Add(config.ReadConfigValue("MSD", "NM_UI_cmbNoticeCommon")); cmbType.Items.Add(config.ReadConfigValue("MSD", "NM_UI_cmbNoticeEvent")); cmbType.Items.Add(config.ReadConfigValue("MSD", "NM_UI_cmbNoticeSystem")); txtContent.Text = ""; NoticeList(); }
private void backgroundWorkerEditNotice_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_GD.GetResult(m_ClientEvent, CEnum.ServiceKey.SD_TaskList_Update, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerKickPlayer_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.GrdCharacter.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); PartInfo(); }
private void backgroundWorkerDeleteNotice_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpServer.Enabled = true; this.GrpNotice.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); NoticeList(); }
private void btnSearchInfo_Click(object sender, EventArgs e) { try { if (cmbServer.Text == "") { MessageBox.Show(config.ReadConfigValue("MMagic", "UIA_Hint_selectServer")); return; } if (txtQueryAccount.Text.Trim().Length > 0) { this.GrpSearch.Enabled = false; this.tbcResult.Enabled = false; this.Cursor = Cursors.WaitCursor;//改变鼠标状态 this.GrdIsBan.DataSource = null; serverIP = Operation_GD.GetItemAddr(mServerInfo, cmbServer.Text); CEnum.Message_Body[] mContent = new CEnum.Message_Body[6]; mContent[0].eName = CEnum.TagName.SD_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = serverIP; mContent[1].eName = CEnum.TagName.SD_ServerName; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = this.cmbServer.Text.ToString(); mContent[2].eName = CEnum.TagName.SD_UserName; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = txtQueryAccount.Text.Trim(); mContent[3].eName = CEnum.TagName.SD_Type; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; mContent[4].eName = CEnum.TagName.Index; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = 1; mContent[5].eName = CEnum.TagName.PageSize; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = Operation_GD.iPageSize; backgroundWorkerQueryBan.RunWorkerAsync(mContent); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void backgroundWorkerActiveCode_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.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_GD.BuildDataTable(this.m_ClientEvent, mResult, dgvResult, out iPageCount); }
private void backgroundWorkerRecoverPwd_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.tbcResult.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); PartInfo(); this.txtTempPwd.Text = ""; }
private void backgroundWorkerUnBind_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.tbcResult.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); BanList(); this.txtUnBindAccount.Text = ""; this.txtUnBindReason.Text = ""; }
private void btnSearch_Click(object sender, EventArgs e) { try { tbcResult.SelectedTab = tpgCharacter;//选择角色信息选项卡 this.GrdCharacter.DataSource = null; if (CmbServer.Text == "") { MessageBox.Show(config.ReadConfigValue("MSD", "UIA_Hint_selectServer")); return; } serverIP = Operation_GD.GetItemAddr(mServerInfo, CmbServer.Text); userName = TxtAccount.Text.Trim(); userNick = txtNick.Text.Trim(); if (TxtAccount.Text.Trim().Length > 0 || txtNick.Text.Trim().Length > 0) { this.GrpSearch.Enabled = false; this.tbcResult.Enabled = false; this.Cursor = Cursors.WaitCursor;//改变鼠标状态 CEnum.Message_Body[] mContent = new CEnum.Message_Body[3]; //查询玩家角色信息 mContent[0].eName = CEnum.TagName.SD_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = serverIP; mContent[1].eName = CEnum.TagName.SD_UserName; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = userName; mContent[2].eName = CEnum.TagName.f_pilot; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = userNick; backgroundWorkerSearch.RunWorkerAsync(mContent); } else { MessageBox.Show(config.ReadConfigValue("MMagic", "UIA_Hint_inPutAccont")); return; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void backgroundWorkerModiLvl_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.tbcResult.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); PartInfo(); this.txtCharLvl.Text = ""; this.NudNewLvl.SelectedIndex = 0; }
private void backgroundWorkerBanPlayer_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.tbcResult.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); PartInfo(); this.txtBanAccount.Text = ""; this.DptBanEndTime.Value = DateTime.Now; this.txtBanReason.Text = ""; }
private void backgroundWorkerAddMoney_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.GrpSearch.Enabled = true; this.tbcResult.Enabled = true; this.Cursor = Cursors.Default;//改变鼠标状态 CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; Operation_GD.showResult(mResult); PartInfo(); this.txtCharMoney.Text = ""; this.NudMoney.Value = 1; this.txtTitle.Text = ""; this.txtContent.Text = ""; }
private void StraightRanking() { try { this.GrpSearch.Enabled = false; this.tbcResult.Enabled = false; this.Cursor = Cursors.WaitCursor;//改变鼠标状态 this.GrdStraightRanking.DataSource = null; this.pnlStraightRanking.Visible = false; this.cmbStraightRanking.Items.Clear(); this.pageStraightRanking = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[4]; mContent[0].eName = CEnum.TagName.SD_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = Operation_GD.GetItemAddr(mServerInfo, cmbServer.Text); //mContent[1].eName = CEnum.TagName.f_idx; //mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; //mContent[1].oContent = userID; //mContent[2].eName = CEnum.TagName.SD_UserName; //mContent[2].eTag = CEnum.TagFormat.TLV_STRING; //mContent[2].oContent = userName; 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_GD.iPageSize; mContent[3].eName = CEnum.TagName.SD_Type; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 2; this.backgroundWorkerStraightRanking.RunWorkerAsync(mContent); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void cmbComplexRank_SelectedIndexChanged(object sender, EventArgs e) { try { if (pageComplexRank) { this.GrpSearch.Enabled = false; this.tbcResult.Enabled = false; this.Cursor = Cursors.WaitCursor;//改变鼠标状态 this.GrdComplexRank.DataSource = null; CEnum.Message_Body[] mContent = new CEnum.Message_Body[4]; mContent[0].eName = CEnum.TagName.SD_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = Operation_GD.GetItemAddr(mServerInfo, cmbServer.Text); //mContent[1].eName = CEnum.TagName.f_idx; //mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; //mContent[1].oContent = userID; //mContent[2].eName = CEnum.TagName.SD_UserName; //mContent[2].eTag = CEnum.TagFormat.TLV_STRING; //mContent[2].oContent = userName; mContent[1].eName = CEnum.TagName.Index; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = int.Parse(this.cmbComplexRank.Text.Trim()); mContent[2].eName = CEnum.TagName.PageSize; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = Operation_GD.iPageSize; mContent[3].eName = CEnum.TagName.SD_Type; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; this.backgroundWorkerReComplexRank.RunWorkerAsync(mContent); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void cmbServer_SelectedIndexChanged(object sender, EventArgs e) { tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_GD.GetItemAddr(mServerInfo, cmbServer.Text)); }
private void backgroundWorkerFormLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { cmbServer = Operation_GD.BuildCombox(mServerInfo, cmbServer); tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_GD.GetItemAddr(mServerInfo, cmbServer.Text)); }
private void GrdDistintegrationOfTheBody_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) //双击列名触发 { using (DataTable dt = (DataTable)GrdDistintegrationOfTheBody.DataSource) { userTime = dt.Rows[e.RowIndex][10].ToString(); SD_ID = dt.Rows[e.RowIndex][0].ToString(); if (MessageBox.Show("恢复机体解体记录!", "恢复机体", MessageBoxButtons.YesNo) == DialogResult.Yes) { CEnum.Message_Body[] mContent = new CEnum.Message_Body[8]; mContent[0].eName = CEnum.TagName.f_idx; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = userID; mContent[1].eName = CEnum.TagName.SD_UserName; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = userName; mContent[2].eName = CEnum.TagName.SD_ServerIP; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = Operation_GD.GetItemAddr(mServerInfo, CmbServer.Text); mContent[3].eName = CEnum.TagName.SD_ItemID; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = int.Parse(dt.Rows[e.RowIndex][4].ToString()); mContent[4].eName = CEnum.TagName.UserByID; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[5].eName = CEnum.TagName.SD_ItemName; mContent[5].eTag = CEnum.TagFormat.TLV_STRING; mContent[5].oContent = dt.Rows[e.RowIndex][5].ToString(); mContent[6].eName = CEnum.TagName.BeginTime; mContent[6].eTag = CEnum.TagFormat.TLV_STRING; mContent[6].oContent = userTime; mContent[7].eName = CEnum.TagName.SD_ID; mContent[7].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[7].oContent = int.Parse(SD_ID); CEnum.Message_Body[,] result = Operation_GD.GetResult(m_ClientEvent, CEnum.ServiceKey.SD_ReGetUnits_Query, mContent); if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg1")); } else { MessageBox.Show(result[0, 0].oContent.ToString()); if (GrdDistintegrationOfTheBody.DataSource != null) { DataTable dt2 = (DataTable)GrdDistintegrationOfTheBody.DataSource; for (int i = 0; i < dt2.Rows.Count; i++) { if (dt2.Rows[i].ItemArray[0].ToString() == SD_ID) { this.GrdDistintegrationOfTheBody.Rows[i].DefaultCellStyle.BackColor = Color.Red; } } } //this.comboBoxGuild.Enabled = false; //this.buttonAdd.Enabled = false; //this.buttonQuit.Enabled = true; } //else if (result[0, 0].oContent.ToString() == "FAILURE") //{ // MessageBox.Show("恢复机体失败!"); //} } } //} //else //{ // MessageBox.Show(config.ReadConfigValue("MSDO", "CI_Code_inPutAccont")); //} } }