示例#1
0
        public async void LoadCategories()
        {
            CurrentCategoriesItems = (await communication.GetCategories(config.CategoriesUri(CurrentlySelectedCountry.CountryCodeShort, CurrentlySelectedCountry.LanguageCode))).Items.GetRange(0, 3);

            foreach (CategoriesItem item in CurrentCategoriesItems)
            {
                item.Container = (await communication.GetCategory(new Uri(item.ObjectUrl))).Container;
            }

            CurrentlySelectedMainPageCategory = CurrentCategoriesItems.FirstOrDefault();
        }