Esempio n. 1
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            // Create a collection object to hold property descriptors
            PropertyDescriptorCollection pds = new PropertyDescriptorCollection(null);

            // Iterate the list of employees
            for (int i = 0; i < this.List.Count; i++)
            {
                // Create a property descriptor for the employee item and add to the property descriptor collection
                PropertyDescriptor pd = new LogicalObjectCollectionPropertyDescriptor(this, i);
                pds.Add(pd);
            }
            // return the property descriptor collection
            return(pds);
        }
Esempio n. 2
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            // Create a collection object to hold property descriptors
			PropertyDescriptorCollection pds = new PropertyDescriptorCollection(null);

			// Iterate the list of employees
			for(int i = 0; i < this.List.Count; i++)
			{
				// Create a property descriptor for the employee item and add to the property descriptor collection
                PropertyDescriptor pd = new LogicalObjectCollectionPropertyDescriptor(this, i);
				pds.Add(pd);
			}
			// return the property descriptor collection
			return pds;
        }