Ejemplo n.º 1
0
        private PropertyDescriptorCollection DoGetProperties(PropertyDescriptorCollection baseProperties)
        {
            PropertyDescriptor[] resultProperties = new PropertyDescriptor[baseProperties.Count];
            int baseCnt = baseProperties.Count;

            for (int i = 0; i < baseCnt; ++i)
            {
                PropertyDescriptorDg propDesc = new PropertyDescriptorDg(baseProperties[i], propertyController, GetPropertyOwner(baseProperties[i]));
                resultProperties[i] = propDesc;
            }
            return(new PropertyDescriptorCollection(resultProperties));
        }
Ejemplo n.º 2
0
		private PropertyDescriptorCollection DoGetProperties(PropertyDescriptorCollection baseProperties) {
			PropertyDescriptor[] resultProperties = new PropertyDescriptor[baseProperties.Count];
			int baseCnt = baseProperties.Count;
			for (int i = 0; i < baseCnt; ++i) {
				PropertyDescriptorDg propDesc = new PropertyDescriptorDg(baseProperties[i], propertyController, GetPropertyOwner(baseProperties[i]));
				resultProperties[i] = propDesc;
			}
			return new PropertyDescriptorCollection(resultProperties);
		}