示例#1
0
        public static bool MigrateSharedSettings(Type settingsClass, string previousExeConfigFilename)
        {
            if (!ApplicationSettingsHelper.IsSharedSettingsMigrationEnabled(settingsClass))
            {
                return(false);
            }

            ApplicationSettingsBase settings = ApplicationSettingsHelper.GetSettingsClassInstance(settingsClass);

            ApplicationSettingsExtensions.MigrateSharedSettings(settings, previousExeConfigFilename);
            return(true);
        }
示例#2
0
 protected override bool PerformUpgrade()
 {
     ApplicationSettingsExtensions.MigrateUserSettings(Settings);
     return(true);
 }