Commit Graph
15 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier f272f2d0a7 2009-08-31 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: reset the property value
	instead of using the DefaultValue.
	* SettingsPropertyValue.cs: new Reset() method.
	* ApplicationSettingsBase.cs: Reset happens in Reload().
	Patch by Andrew Kurochka that fixes bug #532180.


svn path=/trunk/mcs/; revision=140950
2009-08-31 09:20:07 +00:00
Gert Driesen 2dcef460e7 * SettingPropertyValue.cs: Do not return null for zero-length String
value.

svn path=/trunk/mcs/; revision=118927
2008-11-15 13:41:35 +00:00
Atsushi Eno cc59158ec3 2008-11-11 Atsushi Enomoto <[email protected]>
Fix for bug 439943.
        * SettingValueElement.cs : do not write value element twice.
        * CustomizableFileSettingsProvider.cs : create "value" element
          instead of a document fragment so that the output from
          SettingValueElement could become consistent.
          Null binary value caused crash. Set appropriate
          SerializedValue for each serialization type.
        * SettingsPropertyValue.cs : output only when the value is
          non-null.


svn path=/trunk/mcs/; revision=118565
2008-11-12 00:11:45 +00:00
Ivan Zlatev 86e2ab6d2b 2008-09-01 Ivan N. Zlatev <[email protected]>
* SettingsPropertyValue.cs: Explicitly use the Invariant culture
	instead of the current.
	[Fixes bug #374516]

svn path=/trunk/mcs/; revision=112027
2008-09-01 13:55:01 +00:00
Sebastien Pouliot 126013cbd9 2008-01-12 Sebastien Pouliot <[email protected]>
* SettingsPropertyValue.cs: Fix typo. Found using Gendarme.


svn path=/trunk/mcs/; revision=92758
2008-01-12 17:59:40 +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
Vladimir Krasnov 0ad9d70d19 * SettingsPropertyValue.cs: fixed binary deserealization that may be present as base64 string
svn path=/trunk/mcs/; revision=74389
2007-03-15 15:50:52 +00:00
Vladimir Krasnov 0351fb9bb7 fixed IsDirty Property, added tests for IsDirty Property
svn path=/trunk/mcs/; revision=70991
2007-01-14 17:36:58 +00:00
Vladimir Krasnov 94ef49cd16 * SettingsPropertyValue.cs: fixed PropertyValue, default value of SettingsProperty should be desirialized or created
svn path=/trunk/mcs/; revision=70665
2007-01-08 17:07:52 +00:00
Vladimir Krasnov 93c1274ba9 * SettingsPropertyValue.cs: fixed PropertyValue property, added default value convertation to property type
svn path=/trunk/mcs/; revision=70279
2006-12-31 12:46:45 +00:00
Vladimir Krasnov a3eddc657e * SettingsPropertyValue.cs: fixed PropertyValue property when it should be deserialized
* SettingsPropertyValueTest.cs: added tests of value deserealization

svn path=/trunk/mcs/; revision=67369
2006-11-05 11:53:45 +00:00
Chris Toshok 3e69f2a382 2005-11-04 Chris Toshok <[email protected]>
* SettingsProvider.cs, SettingsPropertyValueCollection.cs,
	SettingValueElement.cs, SettingElement.cs,
	SettingsPropertyValue.cs, ApplicationSettingsBase.cs,
	SettingsPropertyCollection.cs, SettingsProviderCollection.cs,
	SettingElementCollection.cs: Add XML_DEPS and CONFIGURATION_DEPS
	to get this to bootstrap compile.  What a pain.


svn path=/trunk/mcs/; revision=52586
2005-11-04 17:25:17 +00:00
Chris Toshok b6f73e890b 2005-09-20 Chris Toshok <[email protected]>
* SettingsPropertyValue.cs
	(SettingsPropertyValue.set_PropertyValue): set needPropertyValue =
	false here so we don't pull in the default value in the getter.

	* SettingsProviderCollection.cs: new implementation.

	* SettingsPropertyValueCollection.cs
	(SettingsPropertyValueCollection..ctor): init items.
	(Add): add an internal method that takes a
	SettingsPropertyValueCollection.


svn path=/trunk/mcs/; revision=50350
2005-09-21 01:03:53 +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