public static void SaveConfig(Config config)
 {
     using (var file = File.Create(AddInEnvironment.ConfigFile))
     {
         configSerializer.Serialize(file, config);
     }
 }
Example #2
0
        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);
        }
Example #3
0
 private static void LoadConfig()
 {
     _config = ConfigManager.LoadConfig();
 }