コード例 #1
0
        private void PartInfo()
        {
            this.btnSearch.Enabled = false;   //禁用搜索按钮
            //this.TbcResult.Enabled = false;
            this.Cursor = Cursors.WaitCursor; //改变鼠标状态
            this.GrdRoleView.DataSource = null;

            CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];
            //查询玩家角色信息
            mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
            mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

            mContent[1].eName    = CEnum.TagName.JW2_ACCOUNT;
            mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[1].oContent = this.txtAccount.Text.ToString().Trim();

            mContent[2].eName    = CEnum.TagName.JW2_UserNick;
            mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[2].oContent = this.txtNick.Text.ToString().Trim();

            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_JW2.iPageSize;

            backgroundWorkerSearch.RunWorkerAsync(mContent);
        }
コード例 #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (pageRoleView)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_FAMILYNAME;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.lblAccountOrNick.Text.ToString();

                mContent[3].eName    = CEnum.TagName.Index;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = int.Parse(cmbRoleView.Text.ToString());

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

                this.backgroundWorkerReSearch.RunWorkerAsync(mContent);
            }
        }
コード例 #3
0
        private void tbcResult_Selected(object sender, TabControlEventArgs e)
        {
            try
            {
                if (GrdRoleView.DataSource != null)
                {
                    DataTable mTable = (DataTable)GrdRoleView.DataSource;

                    strUrl      = mTable.Rows[selectChar][2].ToString();
                    strUrlNoPin = strUrl;
                    strUrl      = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text).ToString() + "/" + strUrl + ".jpg";
                    struserId   = mTable.Rows[selectChar][0].ToString();
                    strUsername = mTable.Rows[selectChar][1].ToString();
                    //webBrowser1.Navigate("about:blank");
                    if (this.tbcResult.SelectedIndex == 1)
                    {
                        //if (strUrl != "")
                        //this.webBrowser1.Navigate(strUrl);
                        //webBrowser1.Refresh();
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #4
0
        private void tbcResult_Selected(object sender, TabControlEventArgs e)
        {
            try
            {
                if (GrdRoleView.DataSource != null)
                {
                    DataTable mTable = (DataTable)GrdRoleView.DataSource;
                    serverIP      = Operation_JW2.GetItemAddr(mServerInfo, this.CmbServer.Text);
                    userID        = int.Parse(mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserSN")].ToString());//保存玩家帐号ID
                    userName      = mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserID")].ToString();
                    textBox1.Text = userName;
                    this.comboBox1.Items.Clear();
                    this.comboBox1.Items.Add(config.ReadConfigValue("MJW2", "NEW_UI_Managerment"));
                    this.comboBox1.Items.Add(config.ReadConfigValue("MJW2", "NEW_UI_NormalPerson"));
                    this.comboBox1.Items.Add(config.ReadConfigValue("MJW2", "NEW_UI_WatchPerson"));

                    this.comboBox1.SelectedIndex = 0;
                }

                else
                {
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #5
0
 private void tbcResult_Selected(object sender, TabControlEventArgs e)
 {
     try
     {
         if (GrdRoleView.DataSource != null)
         {
             DataTable mTable = (DataTable)GrdRoleView.DataSource;
             serverIP = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);
             userID   = int.Parse(mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserSN")].ToString());//保存玩家帐号ID
             userName = mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserID")].ToString();
             if (tbcResult.SelectedTab.Text.Equals("情侶信息"))
             {
                 //CoupleInfo();//查询情侣信息
             }
             else if (tbcResult.SelectedTab.Text.Equals("情侶日誌"))
             {
                 //CoupleLog();//查询情侣日志
             }
         }
         else
         {
             GrdSmallPet.DataSource = null;
             pnlsmallPet.Visible    = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #6
0
        private void RoleInfoView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                this.tabControl1.SelectedIndex = 1;
                //this.CmbPage.Items.Clear();
                if (e.RowIndex != -1)
                {
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[2];


                    using (DataTable dt = (DataTable)RoleInfoView.DataSource)
                    {
                        uid = int.Parse(dt.Rows[e.RowIndex][0].ToString());//保存帮会Id
                    }

                    //查询帮会管理
                    mContent[0].eName    = CEnum.TagName.AU_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, CmbServer.Text);

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


                    this.backgroundWorkerFamilyMember.RunWorkerAsync(mContent);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #7
0
        private void ApplicationMember()
        {
            try
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_FAMILYID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(FamilyID);

                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_JW2.iPageSize;

                this.backgroundWorkerApplicationMember.RunWorkerAsync(mContent);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
        private void btnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                this.GrdRoleView.DataSource = null;

                if (cmbServer.Text == "")
                {
                    MessageBox.Show(config.ReadConfigValue("MSD", "UIA_Hint_selectServer"));
                    return;
                }

                serverIP = Operation_JW2.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);
            }
        }
コード例 #9
0
        private void cmbBaseInfo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (pageBaseInfo)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_FAMILYID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(FamilyID);

                mContent[3].eName = CEnum.TagName.Index;
                mContent[3].eTag  = CEnum.TagFormat.TLV_INTEGER;
                //mContent[3].oContent = int.Parse(this.cmbBaseInfo.Text.ToString());

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

                this.backgroundWorkerReBaseInfo.RunWorkerAsync(mContent);
            }
        }
コード例 #10
0
 private void tbcResult_Selected(object sender, TabControlEventArgs e)
 {
     try
     {
         if (GrdRoleView.DataSource != null)
         {
             DataTable mTable = (DataTable)GrdRoleView.DataSource;
             serverIP = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);
             userID   = int.Parse(mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserSN")].ToString());//保存玩家帐号ID
             userName = mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserID")].ToString();
             if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("GLOBAL", "NEW_UI_FrmJW2WeddingInfo")))
             {
                 WeddingInfo();//查詢婚姻資訊
             }
             else if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("GLOBAL", "NEW_UI_tpgWeddingLog")))
             {
                 WeddingLog();//查詢婚姻日誌
             }
         }
         else
         {
             GrdWeddingLog.DataSource = null;
             pnlHomeItemInfo.Visible  = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #11
0
        private void cmbRoleView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (pageRoleView)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[6];
                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = cmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_ACCOUNT;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.txtAccount.Text.ToString();


                mContent[3].eName    = CEnum.TagName.JW2_UserNick;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = txtNick.Text.ToString();

                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_JW2.iPageSize;

                backgroundWorkerReSearch.RunWorkerAsync(mContent);
            }
        }
コード例 #12
0
        private void FamilyMemeber()
        {
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

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

            mContent[1].eName    = CEnum.TagName.JW2_ServerName;
            mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[1].oContent = CmbServer.Text.ToString();

            mContent[2].eName    = CEnum.TagName.JW2_FAMILYID;
            mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[2].oContent = int.Parse(FamilyID);

            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_JW2.iPageSize;

            backgroundWorkerFamilyMember.RunWorkerAsync(mContent);
        }
コード例 #13
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                //this.GrdResult.DataSource = null;
                this.GrdCharacter.DataSource = null;
                this.pnlListPage.Visible     = false;

                if (cmbServer.Text == "")
                {
                    MessageBox.Show(config.ReadConfigValue("MJW2", "UIC_Hint_selectServer"));
                    return;
                }

                serverIP   = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);
                serverName = cmbServer.Text;
                userName   = txtAccount.Text.Trim();
                userNick   = txtNick.Text.Trim();

                if (txtAccount.Text.Trim().Length > 0 || txtNick.Text.Trim().Length > 0)
                {
                    PartInfo();
                }
                else
                {
                    BanList();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #14
0
 private void tbcResult_Selected(object sender, TabControlEventArgs e)
 {
     try
     {
         if (GrdRoleView.DataSource != null)
         {
             DataTable mTable = (DataTable)GrdRoleView.DataSource;
             serverIP = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);
             userID   = int.Parse(mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserSN")].ToString());//保存玩家帐号ID
             userName = mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserID")].ToString();
             if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_NormalMission")))
             {
                 NormailMission();//查詢普通任務
             }
             else if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_StoryMission")))
             {
                 StoryMission();//查詢故事任務
             }
             else if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_FamilyMission")))
             {
                 FamilyMission();//查詢家族任務
             }
         }
         else
         {
             GrdNormalMission.DataSource = null;
             pnlNormalMission.Visible    = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #15
0
        private void tbcResult_Selected(object sender, TabControlEventArgs e)
        {
            try
            {
                if (GrdRoleView.DataSource != null)
                {
                    DataTable mTable = (DataTable)GrdRoleView.DataSource;
                    serverIP = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);
                    userID   = int.Parse(mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserSN")].ToString());//保存玩家帐号ID
                    userName = mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserID")].ToString();

                    if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_tpgBuyLog")))
                    {
                        this.GrdRepeatBuyItem.DataSource = null;

                        BuyItemInfo();//查询重复购买道具信息
                    }
                }

                else
                {
                    //GrdPet.DataSource = null;
                    //pnlPet.Visible = false;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #16
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                if (textBox1.Text.Trim().Length <= 0)
                {
                    MessageBox.Show(config.ReadConfigValue("MJW2", "NEW_UI_PleaseSelectRoleFirest"));


                    return;
                }
                this.GrpSearch.Enabled = false;
                this.tbcResult.Enabled = false;
                this.Cursor            = Cursors.WaitCursor;//改变鼠标状态

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

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_UserSN;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = userID;


                mContent[4].eName    = CEnum.TagName.JW2_UserID;
                mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[4].oContent = userName;

                mContent[5].eName    = CEnum.TagName.UserByID;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());
                if (this.cmbModiContent.Text.ToString() == config.ReadConfigValue("MJW2", "NEW_UI_ModiEXP"))
                {
                    mContent[3].eName    = CEnum.TagName.JW2_Exp;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[3].oContent = int.Parse(this.textBox3.Text);

                    this.backgroundWorkerModiExp.RunWorkerAsync(mContent);
                }
                else if (this.cmbModiContent.Text.ToString() == config.ReadConfigValue("MJW2", "NEW_UI_ModiLevel"))
                {
                    mContent[3].eName    = CEnum.TagName.JW2_Level;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[3].oContent = int.Parse(this.textBox3.Text);

                    backgroundWorkerModiLvl.RunWorkerAsync(mContent);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #17
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                this.tbcResult.SelectedIndex = 0;

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

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

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


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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = this.CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_ACCOUNT;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.txtAccount.Text.ToString();


                mContent[3].eName    = CEnum.TagName.JW2_UserNick;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = txtNick.Text.ToString();



                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_JW2.iPageSize;

                backgroundWorkerSearch.RunWorkerAsync(mContent);


                tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_JW2.GetItemAddr(mServerInfo, CmbServer.Text));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #18
0
        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_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

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

                    mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = serverIP;

                    mContent[1].eName    = CEnum.TagName.JW2_UserID;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = this.txtQueryAccount.Text.ToString();


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

                    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_JW2.iPageSize;

                    backgroundWorkerQueryBan.RunWorkerAsync(mContent);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #19
0
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                if (textBox1.Text.Trim().Length <= 0)
                {
                    MessageBox.Show(config.ReadConfigValue("MJW2", "NEW_UI_PleaseSelectRoleFirest"));


                    return;
                }
                this.GrpSearch.Enabled   = false;
                this.tabControl1.Enabled = false;
                this.Cursor = Cursors.WaitCursor;//改变鼠标状态

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

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = this.CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_FAMILYID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(FamilyID);

                mContent[3].eName    = CEnum.TagName.JW2_OLD_FAMILYNAME;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = userFamilyName;

                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.JW2_FAMILYNAME;
                mContent[5].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[5].oContent = textBox2.Text.ToString();

                this.backgroundWorkerModiFamilyName.RunWorkerAsync(mContent);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #20
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                this.cmbStorySate.Items.Clear();
                this.GrpSearch.Enabled = false;
                this.tbcResult.Enabled = false;
                this.Cursor            = Cursors.WaitCursor;//改变鼠标状态
                //this.GrdMixItems.DataSource = null;

                //this.pnlMixItems.Visible = false;
                //this.cmbMixItems.Items.Clear();
                this.pageStoryState = false;

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

                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = cmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_ACCOUNT;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.txtAccount.Text.ToString();


                mContent[3].eName    = CEnum.TagName.JW2_UserNick;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = txtNick.Text.ToString();

                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_JW2.iPageSize;

                backgroundWorkerSearch.RunWorkerAsync(mContent);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #21
0
        private void button4_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.textBox4.Text.Trim() == "")
                {
                    MessageBox.Show(config.ReadConfigValue("MSD", "AM_Hint_selectChar"));
                    return;
                }

                this.GrpSearch.Enabled = false;
                this.tbcResult.Enabled = false;
                this.Cursor            = Cursors.WaitCursor;//改变鼠标状态

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

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_UserSN;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = userID;


                mContent[4].eName    = CEnum.TagName.JW2_UserID;
                mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[4].oContent = userName;

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

                mContent[3].eName    = CEnum.TagName.JW2_TmpPWD;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = this.textBox5.Text.ToString();

                this.backgroundWorkerRecoverPassword.RunWorkerAsync(mContent);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #22
0
        private void tbcResult_Selected_1(object sender, TabControlEventArgs e)
        {
            try
            {
                if (GrdRoleView.DataSource != null)
                {
                    DataTable mTable = (DataTable)GrdRoleView.DataSource;
                    serverIP = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);
                    userID   = int.Parse(mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserSN")].ToString());//保存玩家帐号ID
                    userName = mTable.Rows[selectChar][config.ReadConfigValue("GLOBAL", "JW2_UserID")].ToString();
                    if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_tpgSmallPetEgg")))
                    {
                        GrdPetEgg.DataSource = null;

                        PetEgg();//查詢小寵物蛋查詢
                    }
                    else if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_tpgSmallPet")))
                    {
                        this.GrdSmallPet.DataSource = null;
                        SmallPet();//查詢小寵物查詢
                    }
                    else if (tbcResult.SelectedTab.Text.Equals(config.ReadConfigValue("MJW2", "NEW_UI_tabSmallPetEggExchange")))
                    {
                        this.GrdSmallPetEggExchange.DataSource = null;
                        SmallPetEggExchange();//查詢小寵物蛋兌換查詢
                    }
                }

                else
                {
                    GrdPetEgg.DataSource = null;
                    pnlPetEgg.Visible    = false;

                    GrdSmallPet.DataSource = null;
                    pnlsmallPet.Visible    = false;

                    GrdSmallPetEggExchange.DataSource   = null;
                    this.pnlSmallPetEggExchange.Visible = false;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #23
0
        private void cmbServer_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                TxtCode.Items.Clear();

                CEnum.Message_Body[] mContent = new CEnum.Message_Body[1];
                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

                this.backgroundWorkerGSServer.RunWorkerAsync(mContent);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #24
0
        /// <summary>
        /// 返回用","分割的服务器ip字符串
        /// </summary>
        /// <returns>ip字符串</returns>
        private ArrayList ReturnSeverip()
        {
            ArrayList ServerNames = new ArrayList();
            ArrayList Serverips   = new ArrayList();
            string    Strseverip  = null;

            for (int i = 0; i < TxtCode.CheckedItems.Count; i++)
            {
                ServerNames.Add(TxtCode.CheckedItems[i].ToString());
            }
            for (int i = 0; i < ServerNames.Count; i++)
            {
                Serverips.Add(Operation_JW2.GetItemAddr(mChannelInfo, ServerNames[i].ToString()));
            }


            return(Serverips);
        }
コード例 #25
0
        private void cmbRoleView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (pageRoleView)
            {
                this.GrpSearch.Enabled = false;
                this.tbcResult.Enabled = false;
                this.Cursor            = Cursors.WaitCursor;//改变鼠标状态
                //this.GrdMixItems.DataSource = null;

                //this.pnlMixItems.Visible = false;
                //this.cmbMixItems.Items.Clear();
                this.pageRoleView = false;

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

                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = cmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_ACCOUNT;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.txtAccount.Text.ToString();


                mContent[3].eName    = CEnum.TagName.JW2_UserNick;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = txtNick.Text.ToString();

                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_JW2.iPageSize;

                backgroundWorkerReSearch.RunWorkerAsync(mContent);
            }
        }
コード例 #26
0
        private void cmbFamilyConsumerLog_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (pageFamilyConsumerLog)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[8];

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

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = CmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_FAMILYID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(FamilyID);

                mContent[3].eName    = CEnum.TagName.Index;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = int.Parse(this.cmbFamilyConsumerLog.Text.ToString());


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

                mContent[5].eName    = CEnum.TagName.JW2_GOODSTYPE;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = 3;

                mContent[6].eName    = CEnum.TagName.BeginTime;
                mContent[6].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[6].oContent = DtpBegin.Text.ToString();

                mContent[7].eName    = CEnum.TagName.EndTime;
                mContent[7].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[7].oContent = DtpEnd.Text.ToString();


                this.backgroundWorkerFamilyConsumerLog.RunWorkerAsync(mContent);
            }
        }
コード例 #27
0
        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;
            dataGridView2.DataSource = null;

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

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

            mContent[1].eName    = CEnum.TagName.JW2_ServerName;
            mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[1].oContent = CmbServer.Text.ToString();

            mContent[2].eName    = CEnum.TagName.JW2_FAMILYNAME;
            mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[2].oContent = this.lblAccountOrNick.Text.ToString();



            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_JW2.iPageSize;

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

            this.backgroundWorkerSearch.RunWorkerAsync(mContent);
        }
コード例 #28
0
        private void PartInfo()
        {
            try
            {
                //this.tbcResult.SelectedTab = tpgCharacter;
                this.GrdCharacter.DataSource = null;

                this.GrpSearch.Enabled = false;
                this.tbcResult.Enabled = false;
                this.Cursor            = Cursors.WaitCursor;//改变鼠标状态

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

                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);;

                mContent[1].eName    = CEnum.TagName.JW2_UserID;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = this.txtAccount.Text.ToString();


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

                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_JW2.iPageSize;

                backgroundWorkerSearch.RunWorkerAsync(mContent);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #29
0
        private void FamilyItemBuyLog()
        {
            try
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[7];

                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = this.cmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_FAMILYID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(FamilyID);

                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_JW2.iPageSize;

                mContent[5].eName    = CEnum.TagName.BeginTime;
                mContent[5].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[5].oContent = DtpBegin.Text.ToString();

                mContent[6].eName    = CEnum.TagName.EndTime;
                mContent[6].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[6].oContent = DtpEnd.Text.ToString();


                this.backgroundWorkerFamilyItemBuyLog.RunWorkerAsync(mContent);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #30
0
        private void PartInfo()
        {
            try
            {
                this.GrpSearch.Enabled   = false;
                this.GrdRoleView.Enabled = false;
                this.Cursor = Cursors.WaitCursor;//改变鼠标状态

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

                mContent[0].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_JW2.GetItemAddr(mServerInfo, cmbServer.Text);

                mContent[1].eName    = CEnum.TagName.JW2_ServerName;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = cmbServer.Text.ToString();

                mContent[2].eName    = CEnum.TagName.JW2_ACCOUNT;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.txtAccount.Text.ToString();


                mContent[3].eName    = CEnum.TagName.JW2_UserNick;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = txtNick.Text.ToString();

                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_JW2.iPageSize;

                this.backgroundWorkerSearch.RunWorkerAsync(mContent);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }