/// <summary>
 /// Copies settings from a Visual Studio installation to Sql Server Management Studio.
 /// </summary>
 /// <param name="vsVersion">Represents the version of Visual Studio from which we will read the settings.</param>
 /// <param name="sqlVersion">Represents the version of SSMS which will receive the settings.</param>
 public void CopyVSToSql(VisualStudioVersion vsVersion, SqlStudioVersion sqlVersion)
 {
     string vsRegKeyPath = string.Format(_vsRegKeyFormat, _versionStrings[Enum.GetName(typeof(VisualStudioVersion), vsVersion)]);
     string sqlRegKeyPath = string.Format(_sqlRegKeyFormat, _versionStrings[Enum.GetName(typeof(SqlStudioVersion), sqlVersion)]);
     CreateMappingsFromVisualStudioToSql();
     Copy(vsRegKeyPath, sqlRegKeyPath);
 }
 /// <summary>
 /// Copies settings between different versions of Sql Server Management Studio.
 /// </summary>
 /// <param name="sqlVersionSource">Represents the version of SSMS from which we will read the settings.</param>
 /// <param name="sqlVersionDestination">Represents the version of SSMS which will receive the settings.</param>
 public void CopySqlToSql(SqlStudioVersion sqlVersionSource, SqlStudioVersion sqlVersionDestination)
 {
     string sqlRegKeyPathSource = string.Format(_sqlRegKeyFormat, _versionStrings[Enum.GetName(typeof(SqlStudioVersion), sqlVersionSource)]);
     string sqlRegKeyPathDestination = string.Format(_sqlRegKeyFormat, _versionStrings[Enum.GetName(typeof(SqlStudioVersion), sqlVersionDestination)]);
     CreateMappingsFromSqlToSql();
     Copy(sqlRegKeyPathSource, sqlRegKeyPathDestination);
 }
 private void StartImportProcess(SqlStudioVersion sqlSource, SqlStudioVersion sqlDestination)
 {
     lblProcessingStatus.Visible = true;
     this.Enabled = false;
     var importer = new ThemeImporter();
     importer.CopySqlToSql(sqlSource, sqlDestination);
     lblProcessingStatus.Visible = false;
     this.Enabled = true;
     MessageBox.Show("The process is done.");
 }
 private void StartImportProcess(VisualStudioVersion vsVersion, SqlStudioVersion sqlVersion)
 {
     lblProcessingStatus.Visible = true;
     this.Enabled = false;
     var importer = new ThemeImporter();
     importer.CopyVSToSql(vsVersion, sqlVersion);
     lblProcessingStatus.Visible = false;
     this.Enabled = true;
     MessageBox.Show("The process is done.");
 }