[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
1.18 KiB
X
using System;
using System.ComponentModel;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;

namespace XControl
{
    /// <summary>分页模版项</summary>
    [ToolboxItem(false)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public class DataPagerItem : Control, IDataItemContainer, INamingContainer
    {
        private Object _DataItem;
        /// <summary>数据项</summary>
        public Object DataItem
        {
            get { return _DataItem; }
            set { _DataItem = value; }
        }

        private Int32 _DataItemIndex;
        /// <summary>数据索引</summary>
        public Int32 DataItemIndex
        {
            get { return _DataItemIndex; }
            set { _DataItemIndex = value; }
        }

        private Int32 _DisplayIndex;
        /// <summary>显示索引</summary>
        public Int32 DisplayIndex
        {
            get { return _DisplayIndex; }
            set { _DisplayIndex = value; }
        }
    }
}