Hidistro.UI.Web/Admin/promotion/UCGameInfo.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.promotion
{
    using Hidistro.ControlPanel.Members;
    using Hidistro.Core;
    using Hidistro.Entities.Members;
    using Hidistro.Entities.Promotions;
    using Hidistro.UI.Web.Admin.Ascx;
    using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Linq;
    using System.Runtime.CompilerServices;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class UCGameInfo : UserControl
    {
        private Hidistro.Entities.Promotions.GameInfo _gameInfo;
        private IList<MemberGradeItem> _memberGrades = new List<MemberGradeItem>();
        protected CheckBox cbOnlyGiveNotPrizeMember;
        protected ucDateTimePicker dateBeginTime;
        protected ucDateTimePicker dateEndTime;
        protected HiddenField hfGameId;
        protected HiddenField hfKeyWord;
        protected bool isAllCheck;
        protected RadioButton rbdPlayType0;
        protected RadioButton rbdPlayType1;
        protected RadioButton rbdPlayType2;
        protected RadioButton rbdPlayType3;
        protected TextBox txtDescription;
        protected TextBox txtGameTitle;
        protected TextBox txtGameUrl;
        protected TextBox txtGivePoint;
        protected TextBox txtNeedPoint;

        private void BindDate()
        {
            if (this._gameInfo == null)
            {
                string keyWord = Guid.NewGuid().ToString().Replace("-", "");
                this.hfKeyWord.Value = keyWord;
                string str2 = this.CreateGameUrl(keyWord);
                this.txtGameUrl.Text = str2;
            }
            else
            {
                this.hfGameId.Value = this._gameInfo.GameId.ToString();
                this.txtGameTitle.Text = this._gameInfo.GameTitle;
                this.dateBeginTime.SelectedDate = new DateTime?(this._gameInfo.BeginTime);
                this.dateEndTime.SelectedDate = new DateTime?(this._gameInfo.EndTime);
                this.txtDescription.Text = this._gameInfo.Description.Replace("<br/>", "\n");
                this.txtNeedPoint.Text = this._gameInfo.NeedPoint.ToString();
                this.txtGivePoint.Text = this._gameInfo.GivePoint.ToString();
                this.cbOnlyGiveNotPrizeMember.Checked = this._gameInfo.OnlyGiveNotPrizeMember;
                this.rbdPlayType0.Checked = false;
                this.rbdPlayType1.Checked = false;
                this.rbdPlayType2.Checked = false;
                this.rbdPlayType3.Checked = false;
                switch (this._gameInfo.PlayType)
后面还有 172 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。