public static PropertyDefineCollection CreatePropertiesFromConfiguration(PropertyGroupConfigurationElement group)
        {
            PropertyDefineCollection pds = new PropertyDefineCollection();

            pds.LoadPropertiesFromConfiguration(group);

            return(pds);
        }
        public static PropertyDefineCollection CreatePropertiesFromConfiguration(string groupName)
        {
            PropertyDefineCollection pds = new PropertyDefineCollection();

            pds.LoadPropertiesFromConfiguration(groupName);

            return(pds);
        }
        private void LoadPropertiesFromDataType(PropertyDataType dataType)
        {
            string propConfigKey = dataType.ToString() + "FieldProperties";

            PropertyDefineCollection propDefinitions = new PropertyDefineCollection();

            propDefinitions.LoadPropertiesFromConfiguration(propConfigKey);

            this.Properties.InitFromPropertyDefineCollection(propDefinitions);
        }
        /// <summary>
        /// 从配置信息初始化
        /// </summary>
        /// <param name="categoryName"></param>
        internal void InitFromConfiguration(PropertyGroupConfigurationElement elem)
        {
            this.Name        = elem.Name;
            this.Description = elem.Description;

            this._Properties = new PropertyValueCollection();

            PropertyDefineCollection definedProperties = new PropertyDefineCollection();

            definedProperties.LoadPropertiesFromConfiguration(elem);

            this._Properties.InitFromPropertyDefineCollection(definedProperties);
        }