Example #1
0
        private void GetCategoryList()
        {
            CategoryList = new ObservableCollection <MainCategory>(_dataRepo.GetHardCodedCategoryList());

            List <String> catStringList = new List <String>
            {
                "Campus",
                "Faciliteiten & diensten",
                "Lesmateriaal",
                "Netwerk",
                "Software & hardware",
                "Organisatie",
                "Overige"
            };

            List <String> categoryPictureList = new List <String>()
            {
                "ic_location_city_black_24dp.png",
                "ic_directions_bus_black_24dp.png",
                "ic_book_black_24dp.png",
                "ic_settings_input_hdmi_black_24dp.png",
                "ic_laptop_black_24dp.png",
                "ic_people_black_24dp.png",
                "ic_priority_high_black_24dp.png"
            };

            //for (int i = 0; i < catStringList.Count; i++)
            //{
            //    categoryList.Add(new MainCategory()
            //    {
            //        CategoryUDesc = catStringList[i],
            //        Picture = categoryPictureList[i],
            //        Subtitle = "Subtitle test " + i
            //    });
            //}

            //CategoryList = new ObservableCollection<MainCategory>(categoryList);
        }