示例#1
0
 public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     PropertyDescriptor[] newProps = new PropertyDescriptor[Count];
     for (int i = 0; i < Count; i++)
     {
         CustomProperty prop = this[i];
         newProps[i] = new CustomPropertyDescriptor(ref prop, attributes);
     }
     return(new PropertyDescriptorCollection(newProps));
 }
示例#2
0
 public override void ChangeProperty(CustomPropertyDescriptor property)
 {
     if (property.Description == "Net")
     {
         NetName = property.Value as string;
     }
     if (property.Description == "Color")
     {
         WireColor = (Color)property.Value;
     }
     if (property.Description == "Layer")
     {
         layer = (LayerEnum)property.Value;
     }
 }
示例#3
0
 public abstract void ChangeProperty(CustomPropertyDescriptor property);