コード例 #1
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);
        }
コード例 #2
0
 public static void LoadTheme(Theme theme)
 {
     LoadTheme(theme, Context.Application, Context.Config);
 }