private void GrdResult_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == 4) { DataTable mTable = (DataTable)GrdResult.DataSource; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.AuShop_userid; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = mTable.Rows[e.RowIndex][4].ToString(); mContent[1].eName = CEnum.TagName.AU_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = "61.152.150.205"; lock (typeof(C_Event.CSocketEvent)) { mUserStat = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_USERINTERGRAL_QUERY, mContent); } if (mUserStat[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mUserStat[0, 0].oContent.ToString()); return; } UserstatFrm mUserStatFrm = new UserstatFrm(mUserStat, m_ClientEvent); //mUserStatFrm.MdiParent = this.MdiParent; mUserStatFrm.ShowDialog(); } } catch { MessageBox.Show(config.ReadConfigValue("MAUDITION", "FSI_Code_InputName")); } }
private void GrdResult_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == 4) { DataTable mTable = (DataTable)GrdResult.DataSource; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.AuShop_userid; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = mTable.Rows[e.RowIndex][4].ToString(); mContent[1].eName = CEnum.TagName.AU_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = "61.152.150.205"; mUserStat = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERINTERGRAL_QUERY, mContent); if (mUserStat[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mUserStat[0, 0].oContent.ToString()); return; } UserstatFrm mUserStatFrm = new UserstatFrm(mUserStat, m_ClientEvent); //mUserStatFrm.MdiParent = this.MdiParent; mUserStatFrm.ShowDialog(); } } catch { MessageBox.Show("请选择一个玩家的名字"); } }