Пример #1
0
        /// <summary>
        /// 从配置信息初始化
        /// </summary>
        /// <param name="categoryName"></param>
        internal void InitFromConfiguration(UserRecentDataCategoryConfigurationElement elem)
        {
            this.Name        = elem.Name;
            this.Description = elem.Description;

            this._list = new UserRecentDataCategoryItemCollection(this);

            this._definedProperties = new PropertyDefineCollection();
            this._definedProperties.LoadPropertiesFromConfiguration(elem);
            this._defaultSize = elem.DefaultRecentCount;
        }
Пример #2
0
 internal UserRecentDataCategory(UserRecentDataCategoryConfigurationElement elem)
 {
     InitFromConfiguration(elem);
 }