public void LoadThemes(string path) { if (!Directory.Exists(path)) { return; } foreach (string file in Directory.EnumerateFiles(path)) { if (file.EndsWith(".pget")) { AddTheme(EditorTheme.FromString(File.ReadAllText(file))); } } }
// Zaimplementowane z IThemesController public void AddTheme(EditorTheme newTheme) { themes.Add(newTheme.Name, newTheme); }