SobekCM.Core.Aggregations.Complete_Item_Aggregation.Browse_Home_Pages C# (CSharp) Method

Browse_Home_Pages() public method

Read-only list of all the browse objects to appear on the home page attached to this item aggregation
These are returned in alphabetical order of the LABEL portion of each browse, according to the provided language
public Browse_Home_Pages ( Web_Language_Enum Current_Language ) : ReadOnlyCollection
Current_Language Web_Language_Enum Current language used to sort the browses by the label
return ReadOnlyCollection
        public ReadOnlyCollection<Complete_Item_Aggregation_Child_Page> Browse_Home_Pages(Web_Language_Enum Current_Language)
        {
            SortedList<string, Complete_Item_Aggregation_Child_Page> otherBrowses = new SortedList<string, Complete_Item_Aggregation_Child_Page>();
            foreach (Complete_Item_Aggregation_Child_Page thisBrowse in childPagesHash.Values.Where(ThisBrowse => ThisBrowse.Browse_Type == Item_Aggregation_Child_Visibility_Enum.Main_Menu))
            {
                otherBrowses[thisBrowse.Get_Label(Current_Language)] = thisBrowse;
            }
            return new ReadOnlyCollection<Complete_Item_Aggregation_Child_Page>(otherBrowses.Values);
        }