Exemple #1
0
        public void DeleteProperty(PropertyDescriptor p)
        {
            PropertyDescriptorDataTransfer pd = p as PropertyDescriptorDataTransfer;

            if (pd != null)
            {
                DeleteProperty(pd.Property);
            }
        }
Exemple #2
0
        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()));
        }