Example #1
0
 private static List <DemoThemeSet> CreateSets(DemoThemesConfiguration config)
 {
     return(new List <DemoThemeSet>()
     {
         new DemoThemeSet(config, "Color Themes", "default"),
         new DemoThemeSet(config, "DevExpress Themes", "blazing-berry", "purple", "office-white"),
         new DemoThemeSet(config, "Bootswatch Themes", "cerulean", "cosmo", "cyborg", "darkly", "flatly", "journal", "litera", "lumen", "lux", "materia", "minty", "pulse",
                          "sandstone", "simplex", "sketchy", "slate", "solar", "spacelab", "superhero", "united", "yeti")
     });
 }
Example #2
0
        public DemoThemeSet(DemoThemesConfiguration config, string title, params string[] themes)
        {
            Title  = title;
            Themes = themes.Select(CreateTheme).ToArray();


            DemoTheme CreateTheme(string name)
            {
                return(new DemoTheme(config, name));
            }
        }
Example #3
0
 public DemoTheme(DemoThemesConfiguration config, string name)
 {
     this.config = config;
     Name        = name;
 }