Пример #1
0
        internal static PropertyItemCollection GetAlphabetizedProperties(List <PropertyItem> propertyItems)
        {
            PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems);

            propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending);
            return(propertyCollection);
        }
Пример #2
0
        internal static PropertyItemCollection GetCategorizedProperties(List <PropertyItem> propertyItems)
        {
            PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems);

            propertyCollection.GroupBy("Category");
            propertyCollection.SortBy("Category", ListSortDirection.Ascending);
            propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending);
            return(propertyCollection);
        }