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") }); }
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)); } }
public DemoTheme(DemoThemesConfiguration config, string name) { this.config = config; Name = name; }