/// <summary>
        /// 设置奖励物品
        /// </summary>
        /// <param name="type">奖励类型</param>
        /// <param name="id">物品编号</param>
        /// <param name="count">数量</param>
        private void SetItem(mw.Enums.RewardType type, int id, int count)
        {
            this.typeDropDownList.SelectedIndex = (int)type;

            GmModify.itemGiveOptionDisplay(ref typeDropDownList, ref idDropDownList, ref countTextBox);

            for (int i = 0; i < this.idDropDownList.Items.Count; ++i)
            {
                if (this.idDropDownList.Items[i].Value == id.ToString())
                {
                    this.idDropDownList.SelectedIndex = i;
                    break;
                }
            }

            this.countTextBox.Text = count.ToString();
        }
        /// <summary>
        /// 页面载入响应
        /// </summary>
        protected override void OnGmPageLoad()
        {
            if (!this.IsPostBack)
            {
                this.VersionIDText.Text = GmModify.Version;

                // 0 经济类型
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(20000), "0"));
                // 1 物品
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(20001), "1"));
                // 2 武魂
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(20003), "2"));
                // 3 饰品
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(22017), "3"));
                // 4 晶石
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(22018), "4"));
                // 5 坐骑碎片
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(22019), "5"));
                // 6 武将
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(336), "6"));
                // 8 宠物
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(725), "8"));
                // 9 坐骑
                this.typeDropDownList.Items.Add(new ListItem(TableManager.GetGMTText(20009), "9"));

                GmModify.itemGiveOptionDisplay(ref typeDropDownList, ref idDropDownList, ref countTextBox);


                if (GiftTable.GiftListEx != null)
                {
                    foreach (var config in GiftTable.GiftListEx)
                    {
                        this.giftListBox.Items.Add(new ListItem(this.GetGiftText(config), config.id.ToString()));
                    }
                }
            }

            this.outputLabel.Text = "";
        }
        /// <summary>
        /// 上传按钮点击响应
        /// </summary>
        //protected void uploadButton_Click(object sender, EventArgs e)
        //{
        //    if (this.giftFileUpload.HasFile)
        //    {
        //        GiftTable.GiftList = TableManager.Unserialize<mw.GiftConfig>(this.giftFileUpload.FileBytes);
        //        GiftTable.DoStart();

        //        this.giftListBox.Items.Clear();

        //        foreach (var config in GiftTable.GiftList)
        //        {
        //            this.giftListBox.Items.Add(new ListItem(this.GetGiftText(config), config.id.ToString()));
        //        }

        //        this.UpdateRewordId();

        //        this.outputLabel.Text = TableManager.GetGMTText(655);

        //        TableManager.Save(GiftTable.GiftList);
        //    }
        //    else
        //    {
        //        this.outputLabel.Text = TableManager.GetGMTText(656);
        //    }
        //}

        /// <summary>
        /// 奖励类型下拉列表选中改变响应
        /// </summary>
        protected void typeDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {
            GmModify.itemGiveOptionDisplay(ref typeDropDownList, ref idDropDownList, ref countTextBox);
        }