Commit Graph
8 Commits
Author SHA1 Message Date
Atsushi Eno 8b06b7c8a2 2007-05-30 Atsushi Enomoto <[email protected]>
* ConfigXmlDocument.cs : added explicit interface implementations.
	* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
	  into itself and a method. Treat default LocalFileSettingsProvider
	  as a (valid) settings provider. Removed a fixme (only public
	  members should be available).
	* SettingsBase.cs : check lock state in Save().
	* SettingsProviderCollection.cs : remove bogus table field which
	  conflicts with the table in base ProviderCollection class.


svn path=/trunk/mcs/; revision=78240
2007-05-30 17:46:17 +00:00
Atsushi Eno 9274590c24 2007-05-30 Atsushi Enomoto <[email protected]>
* SettingsBase.cs : property values are filled only when each
	  property is accessed. It should not use virtual providers,
	  properties or context internally since they could be overriden.
	* SettingsPropertyValue.cs : to serialize value as string, use
	  TypeConverter as well (as deserialization).
	* SettingsProviderCollection.cs : (Add) null arg check.

	* SettingsBaseTest.cs : new test.
	* ApplicationSettingsBaseTest.cs : added Providers().

	* System_test.dll.sources : added SettingsBaseTest.cs.


svn path=/trunk/mcs/; revision=78181
2007-05-30 10:03:57 +00:00
Miguel de Icaza 0f38908979 2007-01-22 Miguel de Icaza <[email protected]>
* SettingsBase.cs: Removed a NotImplementedException, it provides
	a default Save implementation. 

svn path=/trunk/mcs/; revision=71456
2007-01-22 20:11:06 +00:00
Vladimir Krasnov fec16bd9ab * SettingsBase.cs: implemented Item property
svn path=/trunk/mcs/; revision=69386
2006-12-12 08:46:32 +00:00
Atsushi Eno 73e29a4fb9 2006-05-17 Atsushi Enomoto <[email protected]>
* SettingsPropertyCollection.cs : implemented some synchronization
	  releated members. Actually it can never be synchronized by itself.
	* SettingsBase.cs : Synchronized() just returns the same instance,
	  marking it as IsSynchronized = true. Fixed bug #78430.

	* LocalFileSettingsProviderTest.cs : commented some lines in
	  Initialized() as they don't work under .NET.
	* ApplicationSettingsBaseTest.cs : added Synchronized(), test for
	  bug #78430.

	* SwitchesTest.cs : Ignore NewSwitch under 2.0 as it fails under
	  .NET.


svn path=/trunk/mcs/; revision=60792
2006-05-17 17:20:02 +00:00
Chris Toshok 1368a39647 2006-05-05 Chris Toshok <[email protected]>
* ApplicationSettingsBase.cs (CacheValuesByProvider): emit
	SettingsLoaded after we load the property values.
	(set_Item[string]): fill in settingClass in the
	SettingChangingEventArgs properly.
	(get_Properties): don't depend on setting_attrs[0] being either
	UserScoped- or ApplicationScopedSettingAttribute.  Also, call
	Initialize on any providers we create here.

	* LocalFileSettingsProvider.cs (GetPropertyValues): add a naive
	implementation, leave a MonoTODO.
	(Initialize): fill in name properly, and deal with null values.


svn path=/trunk/mcs/; revision=60336
2006-05-05 19:55:12 +00:00
Chris Toshok 495ce06e9e 2005-09-20 Chris Toshok <[email protected]>
* SettingChangingEventArgs.cs: new implementation.

	* SettingsPropertyIsReadOnlyException.cs: new exception.

	* SettingsPropertyNotFoundException.cs: new exception.

	* ISettingsProviderService.cs: new interface.

	* IApplicationSettingsProvider.cs: new interface.

	* SettingsPropertyValueCollection.cs: new implementation.

	* SettingsPropertyCollection.cs: new implementation.

	* SettingsBase.cs: implement the obvious bits (getters,
	basically).

	* SettingsPropertyValue.cs: make this work for the tests.
	Disgusting class here.  dis-gus-ting.


svn path=/trunk/mcs/; revision=50334
2005-09-20 21:19:45 +00:00
Chris Toshok a8f2f0109a 2005-09-19 Chris Toshok <[email protected]>
* System.Configuration/SettingsProvider.cs,
	System.Configuration/SettingsPropertyValueCollection.cs,
	System.Configuration/SettingsPropertyCollection.cs,
	System.Configuration/SettingsProviderCollection.cs,
	System.Configuration/SettingsBase.cs,
	System.Configuration/SettingsSerializeAs.cs,
	System.Configuration/SettingsPropertyValue.cs,
	System.Configuration/SettingsProperty.cs,
	System.Configuration/SettingsContext.cs,
	System.Configuration/SettingsAttributeDictionary.cs: new files.


svn path=/trunk/mcs/; revision=50255
2005-09-19 18:53:58 +00:00