⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chargetypesetting.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Controls
{
    using PowerEasy.Common;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.WebControls;

    public class ChargeTypeSetting : BaseUserControl
    {
        protected RadioButton RadChargeType0;
        protected RadioButton RadChargeType1;
        protected RadioButton RadChargeType2;
        protected RadioButton RadChargeType3;
        protected RadioButton RadChargeType4;
        protected RadioButton RadChargeType5;
        protected TextBox TxtPitchTime;
        protected TextBox TxtReadTimes;

        protected void Page_Load(object sender, EventArgs e)
        {
            bool isPostBack = this.Page.IsPostBack;
        }

        public int ChargeType
        {
            get
            {
                for (int i = 0; i < 6; i++)
                {
                    RadioButton button = (RadioButton) this.FindControl("RadChargeType" + i.ToString());
                    if (button.Checked)
                    {
                        return i;
                    }
                }
                return 0;
            }
            set
            {
                switch (value)
                {
                    case 0:
                        this.RadChargeType0.Checked = true;
                        return;

                    case 1:
                        this.RadChargeType1.Checked = true;
                        return;

                    case 2:
                        this.RadChargeType2.Checked = true;
                        return;

                    case 3:
                        this.RadChargeType3.Checked = true;
                        return;

                    case 4:
                        this.RadChargeType4.Checked = true;
                        return;

                    case 5:
                        this.RadChargeType5.Checked = true;
                        return;
                }
            }
        }

        public int PitchTime
        {
            get
            {
                return DataConverter.CLng(this.TxtPitchTime.Text);
            }
            set
            {
                this.TxtPitchTime.Text = value.ToString();
            }
        }

        public int ReadTimes
        {
            get
            {
                return DataConverter.CLng(this.TxtReadTimes.Text);
            }
            set
            {
                this.TxtReadTimes.Text = value.ToString();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -