private void backgroundWorkerQuery_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mResult = Operation_RC.GetResult(m_ClientEvent, CEnum.ServiceKey.RC_RcCode_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
예제 #2
0
        private void PartInfo()
        {
            this.RoleInfoView.DataSource  = null;
            CEnum.Message_Body[,] mResult = null;
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

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

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

            mContent[2].eName    = CEnum.TagName.RayCity_NyNickName;
            mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[2].oContent = TxtNick.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_RCode.iPageSize;

            this.backgroundWorkerSerch.RunWorkerAsync(mContent);
        }
예제 #3
0
 private void backgroundWorkerServerLoad_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mServerInfo = Operation_RC.GetServerList(this.m_ClientEvent, (CEnum.Message_Body[])e.Argument);
     }
 }
예제 #4
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                if (CmbServer.Text == "")
                {
                    return;
                }
                //if (!rgx.IsMatch(TxtCoupon.Text) && TxtCoupon.Text != "")
                //{
                //    MessageBox.Show("请输入正确的序列号");
                //    return;
                //}
                //清除控件
                tabControl1.SelectedTab = TpgCharacter;
                this.comboBox2.Items.Clear();
                this.RoleInfoView.DataSource  = null;
                this.BtnSearch.Enabled        = false;
                this.RoleInfoView.DataSource  = null;
                CEnum.Message_Body[,] mResult = null;
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];

                mContent[0].eName = CEnum.TagName.RayCity_CouponNumber;
                mContent[0].eTag  = CEnum.TagFormat.TLV_STRING;
                if (TxtCoupon.Text.Trim().Length == 0)
                {
                    mContent[0].oContent = "";
                }
                else
                {
                    mContent[0].eName    = CEnum.TagName.RayCity_CouponNumber;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = TxtCoupon.Text.ToString();
                }
                mContent[1].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

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

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

                this.backgroundWorkerSerch.RunWorkerAsync(mContent);
            }
            catch (Exception Exp)
            {
                this.BtnSearch.Enabled = true;
                MessageBox.Show(Exp.Message);
            }
        }
        private void InitComboboxInfo()
        {
            try
            {
                CEnum.Message_Body[,] mResult = null;
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[5];


                mContent2[0].eName    = CEnum.TagName.RayCity_ItemName;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = textBox1.Text;


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

                mContent2[2].eName    = CEnum.TagName.PageSize;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[2].oContent = Operation_RCode.iPageSize;

                mContent2[3].eName    = CEnum.TagName.RayCity_ItemID;
                mContent2[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[3].oContent = int.Parse(this.txtCode.Text);

                mContent2[4].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[4].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_ItemShop_Query, mContent2);
                }

                if (mResult.GetLength(1) == 3)
                {
                    for (int i = 0; i < mResult.GetLength(0); i++)
                    {
                        itemEx item1 = new itemEx(mResult[i, 0].oContent.ToString(), mResult[i, 1].oContent.ToString());
                        Operation_RCode.BuildCombox(mResult, CmbPlayerItem, ssd);

                        this.CmbPlayerItem.Items.Add(item1);
                    }
                    this.CmbPlayerItem.SelectedIndex = 0;
                }
                else
                {
                    MessageBox.Show("没有道具列表");
                }
            }
            catch (Exception ex)
            {
            }
        }
예제 #6
0
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[7];


                mContent2[0].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);


                mContent2[1].eName    = CEnum.TagName.RayCity_CharacterID;
                mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[1].oContent = Convert.ToInt32(this.TxtCharinfo.Text);

                mContent2[2].eName    = CEnum.TagName.RayCity_BeginDate;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[2].oContent = DtpBegin.Value;

                mContent2[3].eName    = CEnum.TagName.RayCity_EndDate;
                mContent2[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[3].oContent = DtpEnd.Value;

                mContent2[4].eName    = CEnum.TagName.Index;
                mContent2[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[4].oContent = int.Parse(CmbPage.Text);

                mContent2[5].eName    = CEnum.TagName.PageSize;
                mContent2[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[5].oContent = Operation_RCode.iPageSize;

                itemEx item = (itemEx)this.CmbState.SelectedItem;

                mContent2[6].eName    = CEnum.TagName.RayCity_TradeSessionState;
                mContent2[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[6].oContent = int.Parse(item.Tag);


                CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_TradeInfo_Query, mContent2);

                if (result[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(result[0, 0].oContent.ToString());
                    return;
                }
                else
                {
                    Operation_RCode.BuildDataTable(this.m_ClientEvent, result, TradeInfoView, out iPageCount);
                }
            }
        }
예제 #7
0
        private void TradeInfoView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.RowIndex >= 0 && RoleInfoView.DataSource != null)
                {
                    using (DataTable dt = (DataTable)TradeInfoView.DataSource)
                    {
                        CEnum.Message_Body[,] mResult = null;
                        CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];
                        mContent[0].eName    = CEnum.TagName.RayCity_ServerIP;
                        mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                        mContent[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                        mContent[1].eName    = CEnum.TagName.RayCity_CharacterID;
                        mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                        mContent[1].oContent = Convert.ToInt32(this.TxtCharinfo.Text);

                        mContent[2].eName    = CEnum.TagName.RayCity_TradeSessionIDX;
                        mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                        mContent[2].oContent = int.Parse(dt.Rows[e.RowIndex][0].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_RCode.iPageSize;

                        CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_TradeDetail_Query, mContent);

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

                        else
                        {
                            BrowseMusicName browseMusicName = new BrowseMusicName(result, iPageCount, MousePosition.X, MousePosition.Y);
                            browseMusicName.CreateModule(null, m_ClientEvent);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
 private void backgroundWorkerQuery_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     BtnSearch.Enabled = true;
     Cursor            = Cursors.Default;
     if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
     {
         MessageBox.Show(mResult[0, 0].oContent.ToString());
         return;
     }
     else
     {
         Operation_RC.BuildDataTable(m_ClientEvent, mResult, RoleInfoView, out iPageCount);
     }
 }
예제 #9
0
 private void TradeInfoView_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.ColumnIndex == 2)
         {
             BrowseMusicName1 browseMusicName1 = new BrowseMusicName1(Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text), int.Parse(TradeInfoView[e.ColumnIndex, e.RowIndex].Value.ToString()), MousePosition.X, MousePosition.Y);
             browseMusicName1.CreateModule(null, m_ClientEvent);
         }
     }
     catch
     {
     }
 }
예제 #10
0
        private void InitComboboxInfo()
        {
            try
            {
                comboBox1.Items.Clear();
                CEnum.Message_Body[,] mResult = null;
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[7];


                mContent2[0].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);


                mContent2[1].eName    = CEnum.TagName.RayCity_CharacterID;
                mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[1].oContent = int.Parse(this.userAccount.ToString());

                mContent2[2].eName    = CEnum.TagName.RayCity_BeginDate;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[2].oContent = DtpBegin.Value;

                mContent2[3].eName    = CEnum.TagName.RayCity_EndDate;
                mContent2[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[3].oContent = DtpEnd.Value;

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

                mContent2[5].eName    = CEnum.TagName.PageSize;
                mContent2[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[5].oContent = Operation_RCode.iPageSize;

                itemEx item = (itemEx)this.CmbState.SelectedItem;

                mContent2[6].eName    = CEnum.TagName.RayCity_BingoCardState;
                mContent2[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[6].oContent = int.Parse(item.Tag);

                this.backgroundWorkerInitCombobox.RunWorkerAsync(mContent2);
            }
            catch (Exception ex)
            {
            }
        }
예제 #11
0
        private void InitComboboxInfo()
        {
            try
            {
                CEnum.Message_Body[,] mResult = null;
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[7];
                BtnTradeSearch.Enabled = false;

                mContent2[0].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);


                mContent2[1].eName    = CEnum.TagName.RayCity_CharacterID;
                mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[1].oContent = Convert.ToInt32(this.TxtCharinfo.Text);

                mContent2[2].eName    = CEnum.TagName.RayCity_BeginDate;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[2].oContent = DtpBegin.Value;

                mContent2[3].eName    = CEnum.TagName.RayCity_EndDate;
                mContent2[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[3].oContent = DtpEnd.Value;

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

                mContent2[5].eName    = CEnum.TagName.PageSize;
                mContent2[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[5].oContent = Operation_RCode.iPageSize;

                itemEx item = (itemEx)this.CmbState.SelectedItem;

                mContent2[6].eName    = CEnum.TagName.RayCity_TradeSessionState;
                mContent2[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[6].oContent = int.Parse(item.Tag);


                this.backgroundWorkerTradeInfo.RunWorkerAsync(mContent2);
            }
            catch (Exception ex)
            {
            }
        }
예제 #12
0
        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                //if (!rgx.IsMatch(TxtCoupon.Text) && TxtCoupon.Text!="")
                //{
                //    MessageBox.Show("请输入正确的序列号");
                //    return;
                //}
                if (!bFirst)
                {
                    this.comboBox2.Enabled = false;
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];
                    CEnum.Message_Body[,] mResult = null;
                    mContent[0].eName             = CEnum.TagName.RayCity_CouponNumber;
                    mContent[0].eTag = CEnum.TagFormat.TLV_STRING;
                    if (TxtCoupon.Text.Trim().Length == 0)
                    {
                        mContent[0].oContent = "";
                    }
                    else
                    {
                        mContent[0].oContent = TxtCoupon.Text.ToString();
                    }
                    mContent[1].eName    = CEnum.TagName.RayCity_ServerIP;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

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

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

                    this.backgroundWorkerPage.RunWorkerAsync(mContent);
                }
                bFirst = false;
            }
            catch (Exception Exp)
            {
                this.comboBox2.Enabled = true;
                MessageBox.Show(Exp.Message);
            }
        }
예제 #13
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[7];

                mContent2[0].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);


                mContent2[1].eName    = CEnum.TagName.RayCity_CharacterID;
                mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[1].oContent = int.Parse(this.userAccount.ToString());

                mContent2[2].eName    = CEnum.TagName.RayCity_BeginDate;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[2].oContent = DtpBegin.Value;

                mContent2[3].eName    = CEnum.TagName.RayCity_EndDate;
                mContent2[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[3].oContent = DtpEnd.Value;

                mContent2[4].eName    = CEnum.TagName.Index;
                mContent2[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[4].oContent = int.Parse(this.comboBox1.Text.Trim());

                mContent2[5].eName    = CEnum.TagName.PageSize;
                mContent2[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[5].oContent = Operation_RCode.iPageSize;

                itemEx item = (itemEx)this.CmbState.SelectedItem;

                mContent2[6].eName    = CEnum.TagName.RayCity_BingoCardState;
                mContent2[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[6].oContent = int.Parse(item.Tag);

                this.backgroundWorkerPage.RunWorkerAsync(mContent2);
            }
        }
예제 #14
0
        private void InitTabIndex2Info()
        {
            try
            {
                CEnum.Message_Body[,] mResult = null;
                CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[3];


                mContent2[0].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);


                mContent2[1].eName    = CEnum.TagName.RayCity_CharacterID;
                mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent2[1].oContent = Convert.ToInt32(this.TxtCharinfo.Text);

                mContent2[2].eName    = CEnum.TagName.RayCity_TradeSessionIDX;
                mContent2[2].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent2[2].oContent = DtpBegin.Value;

                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_TradeDetail_Query, mContent2);
                }

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                if (CmbServer.Text == "")
                {
                    return;
                }
                if (TxtAccount.Text == "")
                {
                    MessageBox.Show("請輸入帳號首碼");
                    return;
                }
                if (textBox2.Text == "")
                {
                    MessageBox.Show("請輸入要設定的密碼");
                    return;
                }
                if (textBox2.Text == "")
                {
                    MessageBox.Show("請輸入要設定的密碼");
                    return;
                }
                if (textBox3.Text == "")
                {
                    MessageBox.Show("請輸入開始序號");
                    return;
                }
                if (textBox3.Text == "0")
                {
                    MessageBox.Show("開始序號不能為0");
                    return;
                }
                if (textBox4.Text == "")
                {
                    MessageBox.Show("請輸入結束序號");
                    return;
                }

                if (int.Parse(textBox3.Text) > int.Parse(textBox3.Text))
                {
                    MessageBox.Show("結束序號應該大於開始序號");
                    return;
                }

                BtnSearch.Enabled = false;
                //this.RoleInfoView.DataSource = null;
                CEnum.Message_Body[] mContent1 = new CEnum.Message_Body[4];

                mContent1[0].eName    = CEnum.TagName.RayCity_NyUserID;
                mContent1[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent1[0].oContent = TxtAccount.Text.Trim() + "%%%%%";

                mContent1[1].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent1[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent1[1].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

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

                mContent1[3].eName    = CEnum.TagName.PageSize;
                mContent1[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent1[3].oContent = Operation_RCode.iPageSize;

                CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_BasicAccount_Query, mContent1);

                if (result[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[6];

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

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

                    mContent[2].eName    = CEnum.TagName.RayCity_NyPassword;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[2].oContent = textBox2.Text;

                    mContent[3].eName    = CEnum.TagName.RayCity_StartNum;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[3].oContent = int.Parse(textBox3.Text);

                    mContent[4].eName    = CEnum.TagName.RayCity_EndNum;
                    mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[4].oContent = int.Parse(textBox4.Text);

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

                    backgroundWorkerSearch.RunWorkerAsync(mContent);
                }
                else
                {
                    MessageBox.Show("此首碼已有玩家使用過");
                    BtnSearch.Enabled = true;
                    return;
                }
            }
            catch
            {
                MessageBox.Show("序號格式錯誤");
                return;
            }
        }
        private void BtnSend_Click(object sender, EventArgs e)
        {
            try
            {
                if (CmbPlayerItem.Items.Count > 0 && TxtCharinfo.Text.Length > 0)
                {
                    if (MessageBox.Show("½T¹ê²K¥[§R°£¸Ó¶µ§Þ¯à¶Ü¡H", "½T¹ê²K¥[", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {

                        CEnum.Message_Body[,] mResult = null;

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

                        mContent[0].eName = CEnum.TagName.RayCity_CharacterID;
                        mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER;
                        mContent[0].oContent = int.Parse(TxtCharinfo.Text.Trim());

                        mContent[1].eName = CEnum.TagName.RayCity_SkillID;
                        mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER;
                        mContent[1].oContent = int.Parse(ssd[CmbPlayerItem.Text.ToString()]);

                        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.RayCity_ServerIP;
                        mContent[3].eTag = CEnum.TagFormat.TLV_STRING;
                        mContent[3].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                        mContent[4].eName = CEnum.TagName.RayCity_NyUserID;
                        mContent[4].eTag = CEnum.TagFormat.TLV_STRING;
                        mContent[4].oContent = TxtAccount.Text;

                        mContent[5].eName = CEnum.TagName.RayCity_SkillLevel;
                        mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER;
                        mContent[5].oContent = int.Parse(numericUpDown1.Value.ToString());

                        lock (typeof(C_Event.CSocketEvent))
                        {
                            mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_PlayerSkill_Insert, mContent);
                        }
                        if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                        {
                            MessageBox.Show(mResult[0, 0].oContent.ToString());
                            return;
                        }
                        if (mResult[0, 0].eName == CEnum.TagName.Status && mResult[0, 0].oContent.ToString() == "SUCCESS")
                        {
                            MessageBox.Show("²K¥[¦¨¥\");

                        }
                        else
                        {
                            MessageBox.Show("²K¥[¥¢±Ñ");
                        }
                    }
                    else
                    {
                        return;
                    }
                }
            }
            catch (System.Exception ex)
            {
            }
        }
        private void btnDel_Click(object sender, EventArgs e)
        {
            if (introwIDX >= 0 && RoleInfoView.DataSource != null)

            {
                using (DataTable dt = (DataTable)RoleInfoView.DataSource)
                {
                    if (MessageBox.Show("´_ÕJ„h³ý¼¼ÄÜ?", "„h³ý¼¼ÄÜ", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {

                        CEnum.Message_Body[,] mResult = null;

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

                        mContent[0].eName = CEnum.TagName.RayCity_CharacterID;
                        mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER;
                        mContent[0].oContent = int.Parse(strCharIDX);

                        mContent[1].eName = CEnum.TagName.RayCity_SkillID;
                        mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER;
                        mContent[1].oContent = int.Parse(dt.Rows[introwIDX][0].ToString());

                        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.RayCity_ServerIP;
                        mContent[3].eTag = CEnum.TagFormat.TLV_STRING;
                        mContent[3].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                        mContent[4].eName = CEnum.TagName.RayCity_NyUserID;
                        mContent[4].eTag = CEnum.TagFormat.TLV_STRING;
                        mContent[4].oContent = TxtAccount.Text;

                        lock (typeof(C_Event.CSocketEvent))
                        {
                            mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_PlayerSkill_Delete, mContent);
                        }
                        if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                        {
                            MessageBox.Show(mResult[0, 0].oContent.ToString());
                            return;
                        }
                        if (mResult[0, 0].eName == CEnum.TagName.Status && mResult[0, 0].oContent.ToString() == "SUCCESS")
                        {
                            MessageBox.Show("²Ù×÷³É¹¦");

                        }
                        else
                        {
                            MessageBox.Show("²Ù×÷ʧ”¡");
                        }


                    }
                    else
                    {
                        return;
                    }
                }

            }
            else
            {
                return;
            }
        }
        private void BtnSend_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.TxtContentInfo.Text == "" || this.TxtContentInfo.Text == null)
                {
                    MessageBox.Show(config.ReadConfigValue("MRC", "FRC_UI_ContentInfo"));
                    return;
                }

                if (this.TxtReason.Text == "" || this.TxtReason.Text == null)
                {
                    MessageBox.Show(config.ReadConfigValue("MRC", "FRC_UI_Reason"));
                    return;
                }

                if (this.TxtCharinfo.Text == "" || this.TxtCharinfo.Text == null)
                {
                    MessageBox.Show(config.ReadConfigValue("MRC", "FRC_UI_NoUserAccount"));
                    return;
                }

                CEnum.Message_Body[,] mResult = null;

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

                mContent[0].eName    = CEnum.TagName.RayCity_CharacterID;
                mContent[0].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[0].oContent = int.Parse(TxtCharinfo.Text.Trim());

                mContent[1].eName    = CEnum.TagName.RayCity_ItemID;
                mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[1].oContent = int.Parse(ssd[CmbPlayerItem.Text.ToString()]);

                mContent[2].eName    = CEnum.TagName.RayCity_Message;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = TxtContentInfo.Text.ToString();

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

                mContent[4].eName    = CEnum.TagName.RayCity_ServerIP;
                mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[4].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                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].eName    = CEnum.TagName.RayCity_NyUserID;
                mContent[6].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[6].oContent = TxtAccount.Text;

                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_ItemShop_Insert, mContent);
                }
                if (mResult[0, 0].oContent.ToString() == "SUCCESS")
                {
                    MessageBox.Show("祇癳笵ㄣΘ");
                }
                else
                {
                    MessageBox.Show("祇癳笵ㄣア毖");
                }
            }
            catch (System.Exception ex)
            {
            }
        }
 private void CmbServer_SelectedIndexChanged(object sender, EventArgs e)
 {
     tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text));
 }
        private void RoleInfoView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.RowIndex != -1)
                {
                    DataTable mTable = (DataTable)RoleInfoView.DataSource;
                    userAccount = mTable.Rows[currDgSelectRow]["眀腹ID"].ToString();
                    DataTable dt2 = (DataTable)RoleInfoView.DataSource;

                    if (MessageBox.Show("絋﹚竚產à︹盾?", "竚產à︹", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        CEnum.Message_Body[,] mResult = null;
                        CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[4];

                        mContent2[0].eName    = CEnum.TagName.RayCity_ServerIP;
                        mContent2[0].eTag     = CEnum.TagFormat.TLV_STRING;
                        mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text);

                        mContent2[1].eName    = CEnum.TagName.RayCity_CharacterID;
                        mContent2[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                        mContent2[1].oContent = int.Parse(userAccount);

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

                        mContent2[3].eName    = CEnum.TagName.RayCity_NyUserID;
                        mContent2[3].eTag     = CEnum.TagFormat.TLV_STRING;
                        mContent2[3].oContent = TxtAccount.Text;

                        lock (typeof(C_Event.CSocketEvent))
                        {
                            mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_SetPos_Update, mContent2);
                        }
                        if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                        {
                            MessageBox.Show("巨ア毖");
                            return;
                        }
                        else if (mResult[0, 0].oContent.ToString() == "SUCCESS")
                        {
                            MessageBox.Show("巨Θ");

                            return;
                        }
                        else
                        {
                            MessageBox.Show("巨ア毖");
                            return;
                        }
                    }
                }
                if (e.RowIndex >= 0 && RoleInfoView.DataSource != null)
                {
                    tabControl1.SelectedIndex = 1;
                }
                else
                {
                    return;
                }
            }
            catch (Exception ex)
            { }
        }