private static PropertyGrouper GetPropertyGrouperForField(AttributeWrapper wrapper) { var groupAttribute = wrapper.GetCustomAttributes <GroupAttribute>().FirstOrDefault(); if (groupAttribute == null) { return(null); } return(PropertyGrouperDatabase.GetGrouperForAttribute(groupAttribute.GetType())); }
public static bool DrawHeader(AttributeWrapper wrapper) { HeaderAttribute headerAttr = wrapper.GetCustomAttributes <HeaderAttribute>().FirstOrDefault(); if (headerAttr != null) { DrawHeader(headerAttr.header); return(true); } return(false); }