Exemplo n.º 1
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptor[] newProps = new PropertyDescriptor[properties.Length];
            for (int i = 0; i < properties.Length; i++)
            {
                BranchAccessItemProperty prop = new BranchAccessItemProperty(properties[i].Name, properties[i], false, true);
                newProps[i] = new BranchAccessItemPropertyDescriptor(ref prop, attributes);
            }

            return(new PropertyDescriptorCollection(newProps));
        }
 public ModelItemPropertyDescriptor(ref BranchAccessItemProperty myProperty, Attribute[] attrs)
   : base(myProperty.Name, attrs)
 {
   m_Property = myProperty;
 }
Exemplo n.º 3
0
 public ModelItemPropertyDescriptor(ref BranchAccessItemProperty myProperty, Attribute[] attrs)
     : base(myProperty.Name, attrs)
 {
     m_Property = myProperty;
 }
Exemplo n.º 4
0
    public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
    {
      PropertyDescriptor[] newProps = new PropertyDescriptor[properties.Length];
      for (int i = 0; i < properties.Length; i++)
      {
        BranchAccessItemProperty prop = new BranchAccessItemProperty(properties[i].Name, properties[i], false, true);
        newProps[i] = new BranchAccessItemPropertyDescriptor(ref prop, attributes);
      }

      return new PropertyDescriptorCollection(newProps);
    }