public static void SaveConfig(Config config) { using (var file = File.Create(AddInEnvironment.ConfigFile)) { configSerializer.Serialize(file, config); } }
private static void LoadTheme(Theme theme, DTE2 application, Config config) { application.ExecuteCommand( "Tools.ImportandExportSettings", string.Format("/import:\"{0}\"", theme.FilePath)); config.CurrentThemeName = theme.Name; ConfigManager.SaveConfig(config); }
private static void LoadConfig() { _config = ConfigManager.LoadConfig(); }