예제 #1
0
        private SettingsProtectionSingleton()
        {
            config = SettingsProtectionSettings.Default;

            //bring in settings from any previous version
            if (config.NeedUpgrade)
            {
                //see http://stackoverflow.com/questions/3498561/net-applicationsettingsbase-should-i-call-upgrade-every-time-i-load
                config.Upgrade();
                config.NeedUpgrade = false;
                config.Save();
            }
        }
예제 #2
0
        private SettingsProtectionSingleton()
        {
            config = SettingsProtectionSettings.Default;

            //bring in settings from any previous version
            if (config.NeedUpgrade)
            {
                //see http://stackoverflow.com/questions/3498561/net-applicationsettingsbase-should-i-call-upgrade-every-time-i-load
                config.Upgrade();
                config.NeedUpgrade = false;
                config.Save();
            }
        }