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)); }
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; } }
public abstract void ChangeProperty(CustomPropertyDescriptor property);