示例#1
0
        public PropertyGrouping(XmlNode node)
            : base(node)
        {
            this.property         = (PropertyNames)Enum.Parse(typeof(PropertyNames), Helpers.GetXmlAttribute(node, "property"));
            this.propertyAccessor = PropertyAccessors.Get(property);

            this.i18n   = PropertyAccessors.PropertyNames_i18n[property];
            this.i18ns  = Invert((Dictionary <String, T>)PropertyAccessors.Geti18nFor(property));
            this.images = (ImageDelegate <T>)PropertyAccessors.GetImagesFor(property);
        }
示例#2
0
        public PropertyGrouping(PropertyNames property, Grouping subgrouping)
            : base(subgrouping)
        {
            this.property         = property;
            this.propertyAccessor = PropertyAccessors.Get(property);

            this.i18n   = PropertyAccessors.PropertyNames_i18n[property];
            this.i18ns  = Invert((Dictionary <String, T>)PropertyAccessors.Geti18nFor(property));
            this.images = (ImageDelegate <T>)PropertyAccessors.GetImagesFor(property);
        }