} // ApplicationSettings // ---------------------------------------------------------------------- public ApplicationSettings(string settingsKey, object obj) : base(settingsKey) { settings = new SettingCollection(this); // provider defaultProvider = new LocalFileSettingsProvider(); defaultProvider.Initialize("LocalFileSettingsProvider", new NameValueCollection()); base.Providers.Add(defaultProvider); // upgrade upgradeSettings = new ValueSetting(UpgradeSettingsKey, typeof(bool), true); UseAutoUpgrade = true; if (obj != null) { Settings.AddAll(obj); } } // ApplicationSettings
} // ApplicationSettings // ---------------------------------------------------------------------- public ApplicationSettings( string settingsKey, object obj ) : base( settingsKey ) { settings = new SettingCollection( this ); // provider defaultProvider = new LocalFileSettingsProvider(); defaultProvider.Initialize( "LocalFileSettingsProvider", new NameValueCollection() ); base.Providers.Add( defaultProvider ); // upgrade upgradeSettings = new ValueSetting( UpgradeSettingsKey, typeof( bool ), true ); UseAutoUpgrade = true; if ( obj != null ) { Settings.AddAll( obj ); } } // ApplicationSettings