public void AddProperty(string name, Type type, string category, string description, object defaultValue)
 {
     PropertySpec widthSpec = new PropertySpec(name, type, category, description, defaultValue);
     PropertySpecDescriptor pd = widthSpec.ToPropertyDescriptor();
     pd.OnGetValue += new EventHandler<PropertyEventArgs>(GetValue);
     pd.OnSetValue += new EventHandler<PropertyEventArgs>(SetValue);
     mProperties.Add(pd);
 }
 public void AddProperty(string name, Type type)
 {
     PropertySpec widthSpec = new PropertySpec(name, type);
     PropertySpecDescriptor pd = widthSpec.ToPropertyDescriptor();
     pd.OnGetValue += new EventHandler<PropertyEventArgs>(GetValue);
     pd.OnSetValue += new EventHandler<PropertyEventArgs>(SetValue);
     mProperties.Add(pd);
 }
 public PropertySpecDescriptor(PropertySpec item, Attribute[] attributes)
     : base(item.Name, attributes)
 {
     this.item = item;
 }