Exemplo n.º 1
0
        public PropertyDescriptorCollection GetProperties()
        {
            // Create a new collection object PropertyDescriptorCollection
            var pds = new PropertyDescriptorCollection(null);

            // Iterate the list of employees
            foreach (Setting setting in Settings)
            {
                var propDesc = new SettingPropertyDescriptor(setting, _nameSpace);

                pds.Add(propDesc);
            }
            return(pds);
        }
Exemplo n.º 2
0
        public PropertyDescriptorCollection GetProperties()
        {
            // Create a new collection object PropertyDescriptorCollection
            var pds = new PropertyDescriptorCollection(null);

            // Iterate the list of employees


            var propDesc = new SettingPropertyDescriptor(this, Category);

            pds.Add(propDesc);


            return(pds);
        }