예제 #1
0
 public static IEnumerable <ColorItem> GetColors(MediaCenterLibraryCache cache)
 {
     return(ThemeItemBase.CreateApplicator <ColorsThemeItem, ColorsThemeItem.IColorsThemeItemApplicator>().GetColors(cache));
 }
예제 #2
0
 public static IEnumerable <FontOverride> GetFontOverrides(MediaCenterLibraryCache cache, MediaCenterTheme theme)
 {
     return(ThemeItemBase.CreateApplicator <FontsThemeItem, FontsThemeItem.IFontsThemeItemApplicator>().GetFontOverrides(cache, theme));
 }
예제 #3
0
 internal static U CreateApplicator <T, U>()
     where T : ThemeItemBase
     where U : class, IThemeItemApplicator
 {
     return(ThemeItemBase.CreateApplicator <U>(typeof(T)));
 }
예제 #4
0
 public static IEnumerable <FontClass> GetFontClasses(MediaCenterLibraryCache cache)
 {
     return(ThemeItemBase.CreateApplicator <FontsThemeItem, FontsThemeItem.IFontsThemeItemApplicator>().GetFontClasses(cache));
 }