Ejemplo n.º 1
0
 private IEnumerable <object> GetGroupValues(PropertyDescriptor masterGroup, GroupEnables attribute)
 {
     // Ensure init of Typed values - currently these are cached
     // back into the GroupEnabledAttribute
     if (attribute.Values == null)
     {
         var converter = masterGroup.Converter;
         if (converter != null && converter.CanConvertFrom(typeof(string)))
         {
             attribute.Values = attribute.StringValues.Select(converter.ConvertFromString).ToArray();
         }
         else
         {
             attribute.Values = attribute.StringValues;
         }
     }
     return(attribute.Values);
 }
Ejemplo n.º 2
0
 public GroupEnabledAttribute(GroupEnables[] enables)
 {
     GroupEnables = enables;
 }