internal static PropertyItemCollection GetCategorizedProperties(List <PropertyItem> propertyItems) { PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems); propertyCollection.GroupBy("Category"); propertyCollection.SortBy("Category", ListSortDirection.Ascending); propertyCollection.SortBy("PropertyOrder", ListSortDirection.Ascending); propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending); return(propertyCollection); }
internal static PropertyItemCollection GetAlphabetizedProperties(List <PropertyItem> propertyItems) { PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems); propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending); return(propertyCollection); }