Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }