Esempio n. 1
0
 public override PropertyDescriptorCollection GetProperties()
 {
     return(new PropertyDescriptorCollection(
                owner.Container.Components
                .OfType <BaseEdit>()
                .OrderByDescending(e => (int)owner.GetDefaultSettingsMode(e))                        //Active, then Inactive, then None.
                .ThenBy(e => e.Name)
                .Select((e, i) => new EditorProperty(owner, i, e)).ToArray()
                ));
 }
Esempio n. 2
0
 public override object GetValue(object component)
 {
     return(owner.GetDefaultSettingsMode(edit));
 }