public void DeleteProperty(PropertyDescriptor p) { PropertyDescriptorDataTransfer pd = p as PropertyDescriptorDataTransfer; if (pd != null) { DeleteProperty(pd.Property); } }
public PropertyDescriptorCollection GetProperties(Attribute[] attributes) { List <PropertyDescriptor> lst = new List <PropertyDescriptor>(); if (_dataTransfers != null) { foreach (KeyValuePair <IProperty, ParameterValue> kv in _dataTransfers) { PropertyDescriptorDataTransfer p = new PropertyDescriptorDataTransfer(this, kv.Key); lst.Add(p); } } PropertyDescriptorNewDataTransfer pn = new PropertyDescriptorNewDataTransfer(this); lst.Add(pn); return(new PropertyDescriptorCollection(lst.ToArray())); }