Beispiel #1
0
        private IEnumerable <SelectCategoryInner> ReloadCategories()
        {
            var tester = GetTester();

            return(SelectCategoryDescription.LoadCategories(GetCategory())
                   .Select(x => new SelectCategoryInner(x, Filter.Create(tester, x.Filter))));
        }
Beispiel #2
0
 public SelectCategory(SelectCategoryDescription description) : base(description.Name)
 {
     Description = description;
     Group       = description.Source == @"List" ? "Default" : description.Source;
 }
Beispiel #3
0
 public SelectCategoryInner(SelectCategoryDescription description, IFilter <TObject> filter)
 {
     Description = description;
     _filter     = filter;
 }
Beispiel #4
0
 public SelectCategory(SelectCategoryDescription description) : base(description.Name ?? @"?")
 {
     Description = description;
     Group       = description.Source == @"List" ? "Main" : description.Source;
     Order       = description.Order;
 }
 private IEnumerable <SelectCategoryDescription> ReloadCategories()
 {
     return(SelectCategoryDescription.LoadCategories(ContentCategory.TrackCategories));
 }
 private static Uri GetPageAddress(SelectCategoryDescription category)
 {
     return(UriExtension.Create("/Pages/Miscellaneous/AcObjectSelectList.xaml?Type=track&Filter={0}&Title={1}",
                                $"enabled+&({category.Filter})", category.Name));
 }