예제 #1
0
        /// <summary>
        /// 获取权限的对应id号
        /// </summary>
        /// <returns></returns>
        public int[] GetRoleID()
        {
            string[] arrays = deptAdmin == true ? rolesByDeptAdmin : rolesByGM;

            int[] returnArray = new int[arrays.Length];

            //获取模块列表
            moduleListResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_MODULE_QUERY, C_Global.CEnum.Msg_Category.GAME_ADMIN, null);
            //检测状态

            if (moduleListResult[0, 0].eName != C_Global.CEnum.TagName.ERROR_Msg)
            {
                int currArrayNum = 0;
                for (int i = 0; i < moduleListResult.GetLength(0); i++)
                {
                    for (int j = 0; j < arrays.Length; j++)
                    {
                        if (moduleListResult[i, 3].oContent.ToString().Equals(arrays[j]))
                        {
                            returnArray[currArrayNum] = int.Parse(moduleListResult[i, 0].oContent.ToString());
                            currArrayNum++;
                        }
                    }
                }
            }

            return(returnArray);
        }
예제 #2
0
 private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         serverIPResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SERVERINFO_IP_QUERY, C_Global.CEnum.Msg_Category.COMMON, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerPageChanged_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GMTOOLS_BUGLIST_QUERY, C_Global.CEnum.Msg_Category.COMMON, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerListView_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SERVERINFO_IP_ALL_QUERY, C_Global.CEnum.Msg_Category.COMMON, null);
     }
 }
 private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.MODULE_QUERY, C_Global.CEnum.Msg_Category.MODULE_ADMIN, (CEnum.Message_Body[])e.Argument);
     }
 }
        private void ReadSence()
        {
            try
            {

                senceResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_CHALLENGE_SCENE_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, null);


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

                for (int i = 0; i < senceResult.GetLength(0); i++)
                {
                    cbxScene.Items.Add(senceResult[i, 1].oContent.ToString());
                }
                cbxScene.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

        }
        public void InitializeItem()
        {
            CmbItem.Items.Clear();
            try
            {
                lock (typeof(C_Event.CSocketEvent))
                {
                    senceResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SOCCER_ITEM_SKILL_QUERY, C_Global.CEnum.Msg_Category.SOCCER_ADMIN, null);
                }

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

                for (int i = 0; i < senceResult.GetLength(0); i++)
                {
                    CmbItem.Items.Add(senceResult[i, 1].oContent.ToString());
                }
                CmbItem.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #8
0
 private void backgroundWorkerResetID_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         modiInfoResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.CARD_USERINFO_CLEAR, C_Global.CEnum.Msg_Category.CARD_ADMIN, (CEnum.Message_Body[])e.Argument);
     }
 }
        /// <summary>
        /// 读取记录
        /// </summary>
        private void ReadInfos()
        {
            dgInfoList.DataSource = null;
            selectRow             = 0;
            try
            {
                senceResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_CHALLENGE_SCENE_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, null);


                if (senceResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    toolStripButton2.Enabled = false;
                    toolStripButton3.Enabled = false;
                    MessageBox.Show(senceResult[0, 0].oContent.ToString());
                    return;
                }


                toolStripButton2.Enabled = true;
                toolStripButton3.Enabled = true;
                dgInfoList.DataSource    = BrowseResultInfo();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        /// <summary>
        /// 读取玩家9you帐号
        /// </summary>
        private bool ReadNYNickName()
        {
            bool isExistNick = true;

            C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[1];

            messageBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_STRING;
            messageBody[0].eName    = C_Global.CEnum.TagName.UserName;
            messageBody[0].oContent = txtAccount.Text;

            lock (typeof(C_Event.CSocketEvent))
            {
                accountResultNY = m_ClientEvent.RequestResult(CEnum.ServiceKey.CARD_USERNICK_QUERY, C_Global.CEnum.Msg_Category.CARD_ADMIN, messageBody);
            }
            if (accountResultNY[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                isExistNick = false;
            }
            else
            {
                isExistNick    = true;
                txtNYNick.Text = accountResultNY[0, 0].oContent.ToString();
            }

            return(isExistNick);
        }
예제 #11
0
 private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         accountResult = tmp_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SOCCER_CHARACTERINFO_QUERY, C_Global.CEnum.Msg_Category.SOCCER_ADMIN, (CEnum.Message_Body[])e.Argument);
     }
 }
예제 #12
0
 private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         senceResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_CHALLENGE_SCENE_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, null);
     }
 }
예제 #13
0
 private void backgroundWorkerBtnOK_DoWork(object sender, DoWorkEventArgs e)
 {
     CEnum.Message_Body[] messageBody = (CEnum.Message_Body[])e.Argument;
     lock (typeof(C_Event.CSocketEvent))
     {
         if (messageBody.Length == 3)
         {
             e.Result = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_CREATE, C_Global.CEnum.Msg_Category.GAME_ADMIN, messageBody);
             try
             {
                 int iSrvCount = int.Parse(m_ClientEvent.GetInfo("ServersCount").ToString());
                 for (int iSrvIndex = 1; iSrvIndex <= iSrvCount; iSrvIndex++)
                 {
                     ((CSocketEvent)m_ClientEvent.GetInfo("Server" + iSrvIndex)).RequestResult(C_Global.CEnum.ServiceKey.GAME_CREATE, C_Global.CEnum.Msg_Category.GAME_ADMIN, messageBody);
                 }
             }
             catch { }
         }
         else
         {
             e.Result = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_UPDATE, C_Global.CEnum.Msg_Category.GAME_ADMIN, messageBody);
             try
             {
                 int iSrvCount = int.Parse(m_ClientEvent.GetInfo("ServersCount").ToString());
                 for (int iSrvIndex = 1; iSrvIndex <= iSrvCount; iSrvIndex++)
                 {
                     ((CSocketEvent)m_ClientEvent.GetInfo("Server" + iSrvIndex)).RequestResult(C_Global.CEnum.ServiceKey.GAME_UPDATE, C_Global.CEnum.Msg_Category.GAME_ADMIN, messageBody);
                 }
             }
             catch { }
         }
     }
 }
        private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
        {
            lock (typeof(C_Event.CSocketEvent))
            {
                //e.Result = Operation_SDO.GetResult(tmp_ClientEvent, CEnum.ServiceKey.SDO_QueryDeleteItem_QUERY, (CEnum.Message_Body[])e.Argument);

                e.Result = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.NOTES_CONTENT_SEND, C_Global.CEnum.Msg_Category.NOTES_ADMIN, (CEnum.Message_Body[])e.Argument);
            }
        }
예제 #15
0
        private int currPage  = 0;  //当前页数
        #endregion

        #region 自定义函数
        /// <summary>
        /// 初始化列表
        /// </summary>
        public void InitializeListView()
        {
            try
            {
                //listView1.Columns.Clear();
                listView1.Items.Clear();

                C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[2];

                messageBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_INTEGER;
                messageBody[0].eName    = C_Global.CEnum.TagName.Index;
                messageBody[0].oContent = pageIndex;

                messageBody[1].eTag     = C_Global.CEnum.TagFormat.TLV_INTEGER;
                messageBody[1].eName    = C_Global.CEnum.TagName.PageSize;
                messageBody[1].oContent = pageSize;

                //正式信息
                mResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.MODULE_QUERY, C_Global.CEnum.Msg_Category.MODULE_ADMIN, messageBody);
                //检测状态
                if (mResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    //Application.Exit();
                    return;
                }
                //总页数
                pageCount = int.Parse(mResult[0, 6].oContent.ToString());

                //显示内容到列表
                string[] rowInfo = new string[5];
                for (int i = 0; i < mResult.GetLength(0); i++)
                {
                    //编号
                    rowInfo[0] = Convert.ToString(i + 1);
                    //模块名称
                    rowInfo[1] = mResult[i, 3].oContent.ToString();
                    //模块类名
                    rowInfo[2] = mResult[i, 4].oContent.ToString();
                    //所属游戏
                    rowInfo[3] = mResult[i, 2].oContent.ToString();
                    //描述
                    rowInfo[4] = mResult[i, 5].oContent.ToString();
                    ListViewItem mlistViewItem = new ListViewItem(rowInfo, -1);
                    listView1.Items.Add(mlistViewItem);
                    listView1.Items[i].Tag = mResult[i, 1].oContent.ToString();
                }
                //listView1 = GMAdmin.DisplayView(m_ClientEvent, listView1, mResult,true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #16
0
        private void NewModule_Load(object sender, System.EventArgs e)
        {
            IntiFontLib();
            //添加
            if (!isModify)
            {
                //初始化界面
                comboBox1.Items.Clear();
                textBox1.Clear();
                textBox2.Clear();
                textBox3.Clear();

                //正式信息
                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_QUERY, C_Global.CEnum.Msg_Category.GAME_ADMIN, this.mMsgBody);
                }
                //检测状态
                if (mResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    //Application.Exit();
                    return;
                }

                comboBox1 = GMAdmin.DisplayComboBox(m_ClientEvent, comboBox1, mResult);
            }
            else            //编辑
            {
                comboBox1.Items.Clear();
                textBox1.Clear();
                textBox2.Clear();
                textBox3.Clear();

                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_QUERY, C_Global.CEnum.Msg_Category.GAME_ADMIN, this.mMsgBody);
                }
                //检测状态
                if (mResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    //Application.Exit();
                    return;
                }
                comboBox1 = GMAdmin.DisplayComboBox(m_ClientEvent, comboBox1, mResult);
                int index = comboBox1.FindString(requestMsgBody[1].oContent.ToString().Trim());
                this.comboBox1.SelectedIndex = index;
                //this.comboBox1.Text = requestMsgBody[1].oContent.ToString().Trim();
                this.textBox1.Text = requestMsgBody[2].oContent.ToString().Trim();
                this.textBox2.Text = requestMsgBody[3].oContent.ToString().Trim();
                this.textBox3.Text = requestMsgBody[4].oContent.ToString().Trim();
            }
        }
예제 #17
0
        /// <summary>
        /// 窗体载入时
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ModiRole_Load(object sender, System.EventArgs e)
        {
            IntiFontLib();
            //获取游戏列表
            try
            {
                C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[1];

                messageBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_INTEGER;
                messageBody[0].eName    = C_Global.CEnum.TagName.User_ID;
                messageBody[0].oContent = userID;
                gameListResult          = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.DEPART_RELATE_GAME_QUERY, C_Global.CEnum.Msg_Category.USER_ADMIN, messageBody);
                //检测状态
                if (gameListResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(gameListResult[0, 0].oContent.ToString());
                    //Application.Exit();
                    return;
                }
                //获取模块列表
                moduleListResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_MODULE_QUERY, C_Global.CEnum.Msg_Category.GAME_ADMIN, null);
                //检测状态
                if (moduleListResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(moduleListResult[0, 0].oContent.ToString());
                    //Application.Exit();
                    return;
                }
                //用户拥有权限
                C_Global.CEnum.Message_Body[] mModuleBody = new C_Global.CEnum.Message_Body[1];
                mModuleBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_INTEGER;
                mModuleBody[0].eName    = C_Global.CEnum.TagName.User_ID;
                mModuleBody[0].oContent = this.userID;
                userRoleResult          = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.USER_MODULE_QUERY, C_Global.CEnum.Msg_Category.USER_MODULE_ADMIN, mModuleBody);
                //检测状态

                /*
                 * if (userRoleResult[0,0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                 * {
                 *  MessageBox.Show(userRoleResult[0,0].oContent.ToString());
                 *  //Application.Exit();
                 *  return;
                 * }
                 */
                //显示游戏列表
                InitializeGameList(userRoleResult);
                this.listView2.Items.Clear();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }
        }
예제 #18
0
        private int _dbUse = 1; //可用
        #endregion

        #region 自定义函数

        /// <summary>
        /// 初始化列表

        /// </summary>
        public void InitializeListView()
        {
            try
            {
                //Thread thread = new Thread();
                //listViewAcoount.Columns.Clear();
                listViewDBInfo.Items.Clear();
                //正式信息

                mResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SERVERINFO_IP_ALL_QUERY, C_Global.CEnum.Msg_Category.COMMON, null);

                //检测状态

                if (mResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    //Application.Exit();
                    return;
                }

                //显示内容到列表

                string[] rowInfo = new string[6];
                for (int i = 0; i < mResult.GetLength(0); i++)
                {
                    //行编号

                    rowInfo[0] = Convert.ToString(i + 1);
                    //服务器ip
                    rowInfo[1] = mResult[i, 1].oContent.ToString();
                    //大区名称
                    rowInfo[2] = mResult[i, 2].oContent.ToString();
                    //游戏名称
                    rowInfo[3] = mResult[i, 4].oContent.ToString();
                    //数据库类型 1,2,3
                    rowInfo[4] = mResult[i, 5].oContent.ToString();
                    //游戏状态

                    rowInfo[5] = mResult[i, 6].oContent.ToString();

                    ListViewItem mlistViewItem = new ListViewItem(rowInfo, -1);
                    this.listViewDBInfo.Items.Add(mlistViewItem);
                    listViewDBInfo.Items[i].Tag = mResult[i, 0].oContent.ToString();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 private void backgroundWorkerAccont_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.CARD_USERINITACTIVE_QUERY, CEnum.Msg_Category.CARD_ADMIN, (CEnum.Message_Body[])e.Argument);
     }
 }
        public void InitializeMusicList()
        {
            try
            {
                C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[2];


                messageBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_STRING;
                messageBody[0].eName    = C_Global.CEnum.TagName.SDO_ServerIP;
                messageBody[0].oContent = _serverIP;

                messageBody[1].eTag     = C_Global.CEnum.TagFormat.TLV_INTEGER;
                messageBody[1].eName    = C_Global.CEnum.TagName.SDO_MusicID1;
                messageBody[1].oContent = _musicID;

                musicResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SDO_MUSICDATA_OWN_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, messageBody);

                //检测状态

                if (musicResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    musicName.Text = "";
                    return;
                }

                musicName.Text = musicResult[0, 0].oContent.ToString();
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.Message);
            }
        }
예제 #21
0
        private void FrmAddress_Load(object sender, EventArgs e)
        {
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[1];
            mContent[0].eName    = CEnum.TagName.ServerInfo_GameDBID;
            mContent[0].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[0].oContent = 1;


            lock (typeof(C_Event.CSocketEvent))
            {
                userInfos = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.NOTES_LINKER_GET, C_Global.CEnum.Msg_Category.NOTES_ADMIN, mContent);
            }
            if (userInfos[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(userInfos[0, 0].oContent.ToString());
                return;
            }

            if (userInfos != null)
            {
                for (int i = 0; i < userInfos.GetLength(0); i++)
                {
                    // List<string> __user_mail_list = __linker.ListGroup(__linker_msg[i, 0].oContent.ToString(), __linker_msg);
                    List <string> __user_mail_list = Group(userInfos);

                    for (int j = 0; j < __user_mail_list.Count; j++)
                    {
                        comboBox1.Items.Add(__user_mail_list[j]);
                        //listBox1.Items.Add(__user_mail_list[j]);
                    }
                }
                comboBox1.SelectedIndex = 0;
            }
        }
        private void ReadKeyWords()
        {
            try
            {
                C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[2];

                messageBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_STRING;
                messageBody[0].eName    = C_Global.CEnum.TagName.CARD_username;
                messageBody[0].oContent = TxtAccount.Text.Trim();

                messageBody[1].eTag     = C_Global.CEnum.TagFormat.TLV_TIMESTAMP;
                messageBody[1].eName    = C_Global.CEnum.TagName.CARD_PayStartDate;
                messageBody[1].oContent = Convert.ToDateTime(DptStart.Text);;


                doResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.CARD_DanceItem_QUERY, C_Global.CEnum.Msg_Category.CARD_ADMIN, messageBody);

                if (doResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(doResult[0, 0].oContent.ToString());
                    return;
                }
                else
                {
                    Operation_Card.BuildDataTable(m_ClientEvent, doResult, this.GrdResult, out RolePage);
                }
            }
            catch
            { }
        }
        C_Global.CEnum.Message_Body[,] doResult = null;       //玩家信息列表

        #endregion

        #region 函数


        /// <summary>
        /// 读取
        /// </summary>
        private void ReadKeyWords()
        {
            C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[1];

            //messageBody[0].eTag = C_Global.CEnum.TagFormat.TLV_STRING;
            //messageBody[0].eName = C_Global.CEnum.TagName.SDO_ServerIP;
            //messageBody[0].oContent = _serverIP;

            messageBody[0].eTag     = C_Global.CEnum.TagFormat.TLV_STRING;
            messageBody[0].eName    = C_Global.CEnum.TagName.SDO_NickName;
            messageBody[0].oContent = txtID.Text;


            doResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_PADKEYWORD_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, messageBody);

            if (doResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(doResult[0, 0].oContent.ToString());
                return;
            }
            else
            {
                dividerPanel1.Visible = true;
                lblKeyWords.Text      = doResult[0, 0].oContent.ToString();
            }
        }
예제 #24
0
 private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         gameListResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.DEPART_RELATE_GAME_QUERY, C_Global.CEnum.Msg_Category.USER_ADMIN, (CEnum.Message_Body[])(((ArrayList)e.Argument)[0]));
         //检测状态
         if (gameListResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
         {
             MessageBox.Show(gameListResult[0, 0].oContent.ToString());
             e.Cancel = true;
             //Application.Exit();
             return;
         }
         moduleListResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.GAME_MODULE_QUERY, C_Global.CEnum.Msg_Category.GAME_ADMIN, null);
         userRoleResult   = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.USER_MODULE_QUERY, C_Global.CEnum.Msg_Category.USER_MODULE_ADMIN, (CEnum.Message_Body[])(((ArrayList)e.Argument)[1]));
     }
 }
예제 #25
0
        /// <summary>
        /// 读取道具物品
        /// </summary>
        private void ReadItems()
        {
            cbxItems.Items.Clear();
            CEnum.Message_Body[] mItemContent = new CEnum.Message_Body[4];

            if (_ServerIP == null)
            {
                for (int i = 0; i < this.serverIPResult.GetLength(0); i++)
                {
                    if (serverIPResult[i, 1].oContent.ToString().Trim().Equals(this.cbxServerIP.Text.Trim()))
                    {
                        this._ServerIP = serverIPResult[i, 0].oContent.ToString();
                    }
                }
            }

            mItemContent[0].eName    = CEnum.TagName.SDO_ServerIP;
            mItemContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mItemContent[0].oContent = _ServerIP;

            mItemContent[1].eName    = CEnum.TagName.SDO_BigType;
            mItemContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mItemContent[1].oContent = iType;

            mItemContent[2].eName    = CEnum.TagName.SDO_SmallType;
            mItemContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mItemContent[2].oContent = iSort;

            mItemContent[3].eName    = CEnum.TagName.SDO_ItemName;
            mItemContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
            mItemContent[3].oContent = "";
            itemResult = m_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_ITEMSHOP_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, mItemContent);

            if (itemResult[0, 0].eName != C_Global.CEnum.TagName.ERROR_Msg)
            {
                for (int i = 0; i < itemResult.GetLength(0); i++)
                {
                    cbxItems.Items.Add(itemResult[i, 3].oContent.ToString());
                }
                cbxItems.SelectedIndex = 0;
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "RE_Code_errMsg"));
            }
        }
 private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     if (type == 0)
     {
         lock (typeof(C_Event.CSocketEvent))
         {
             e.Result = m_ClientEvent.RequestResult(CEnum.ServiceKey.CARD_USERINITACTIVE_QUERY, CEnum.Msg_Category.CARD_ADMIN, (CEnum.Message_Body[])e.Argument);
         }
     }
     else if (type == 1)
     {
         lock (typeof(C_Event.CSocketEvent))
         {
             e.Result = m_ClientEvent.RequestResult(CEnum.ServiceKey.CARD_USERHISTORYPWD_QUERY, CEnum.Msg_Category.CARD_ADMIN, (CEnum.Message_Body[])e.Argument);
         }
     }
 }
예제 #27
0
 private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     if (((ArrayList)e.Argument)[0].ToString() == "ReadInfos")
     {
         lock (typeof(C_Event.CSocketEvent))
         {
             accountResult = tmp_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_MEDALITEM_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, (CEnum.Message_Body[])(((ArrayList)e.Argument)[1]));
         }
     }
     else
     {
         lock (typeof(C_Event.CSocketEvent))
         {
             accountResult = tmp_ClientEvent.RequestResult(CEnum.ServiceKey.SDO_MEDALITEM_OWNER_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, (CEnum.Message_Body[])(((ArrayList)e.Argument)[1]));
         }
     }
 }
예제 #28
0
        /// <summary>
        /// 获取服务器地址列表
        /// </summary>
        /// <param name="mEvent">Socket事件</param>
        /// <param name="mContent">消息内容</param>
        /// <returns>请求结果</returns>
        public static CEnum.Message_Body[,] GetServerList(CSocketEvent mEvent, CEnum.Message_Body[] mContent)
        {
            CEnum.Message_Body[,] mReturn = null;

            mReturn =
                mEvent.RequestResult(CEnum.ServiceKey.SERVERINFO_IP_QUERY, CEnum.Msg_Category.COMMON, mContent);

            return(mReturn);
        }
예제 #29
0
        private void backgroundWorkerActive_DoWork(object sender, DoWorkEventArgs e)
        {
            ArrayList paramList = (ArrayList)e.Argument;

            lock (typeof(C_Event.CSocketEvent))
            {
                e.Result = tmp_ClientEvent.RequestResult((CEnum.ServiceKey)paramList[0], (CEnum.Msg_Category)paramList[1], (CEnum.Message_Body[])paramList[2]);
            }
        }
예제 #30
0
        /// <summary>
        /// 获取信息列表
        /// </summary>
        /// <param name="mEvent">Socket事件</param>
        /// <param name="mKey">请求标记</param>
        /// <param name="mContent">消息内容</param>
        /// <returns>请求结果</returns>
        public static CEnum.Message_Body[,] GetResult(CSocketEvent mEvent, CEnum.ServiceKey mKey, CEnum.Message_Body[] mContent)
        {
            CEnum.Message_Body[,] mReturn = null;

            mReturn =
                mEvent.RequestResult(mKey, CEnum.Msg_Category.FJ_ADMIN, mContent);

            return(mReturn);
        }