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; }
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; }