public static List <KeyValuePair <string, string> > GetHostThemes() { string ThemeRoot = "Themes"; var themes = new List <KeyValuePair <string, string> >(); string root = Globals.HostMapPath + ThemeRoot; if (Directory.Exists(root)) { foreach (string ThemeFolder in Directory.GetDirectories(root)) { if (!ThemeFolder.EndsWith(Globals.glbHostThemeFolder)) { AddThemeFiles(themes, ThemeRoot, ThemeFolder, false); } } } return(themes); }