Ejemplo n.º 1
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptor[] newProps = new PropertyDescriptor[this.Count];
            for (int i = 0; i < this.Count; i++)
            {
                CAttribute prop = (CAttribute)this[i];
                newProps[i] = new CustomPropertyDescriptor(ref prop, attributes);
            }

            return(new PropertyDescriptorCollection(newProps));
        }
Ejemplo n.º 2
0
 public CustomPropertyDescriptor(ref CAttribute myProperty, Attribute[] attrs)
     : base(myProperty.StrName, attrs)
 {
     m_Property = myProperty;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Add 1 CAttribute vào list
 /// </summary>
 /// <param name="Value"></param>
 public void Add(CAttribute Value)
 {
     base.List.Add(Value);
 }