Beispiel #1
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptor[] newProps = new PropertyDescriptor[Count];
            for (int i = 0; i < Count; i++)
            {
                PGProperty prop = (PGProperty)List[i];
                newProps[i] = new PGPropertyDescriptor(ref prop, attributes);
            }

            return(new PropertyDescriptorCollection(newProps));
        }
Beispiel #2
0
 public void Add(PGProperty value)
 {
     List.Add(value);
 }
Beispiel #3
0
 public PGPropertyDescriptor(ref PGProperty prop, Attribute[] attrs) : base(prop.key, attrs)
 {
     this.prop = prop;
 }