Commit Graph
20 Commits
Author SHA1 Message Date
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
Atsushi Eno f2b5ad3c51 2008-11-05 Atsushi Enomoto <[email protected]>
* SettingValueElement.cs, CustomizableFileSettingsProvider.cs :
	  revert previous regressive change.


svn path=/trunk/mcs/; revision=117984
2008-11-05 15:51:55 +00:00
Atsushi Eno 4baa530b64 2008-11-05 Atsushi Enomoto <[email protected]>
* SettingValueElement.cs, CustomizableFileSettingsProvider.cs :
	  Fixed bug #439943. Xml deserialization for complex content was
	  not done correctly.


svn path=/trunk/mcs/; revision=117961
2008-11-05 09:18:26 +00:00
Gonzalo Paniagua Javier 8db1078e92 revert
svn path=/trunk/mcs/; revision=117574
2008-10-31 17:47:04 +00:00
Gonzalo Paniagua Javier 23a91b586e 2008-10-31 Gonzalo Paniagua Javier <[email protected]>
* System/System.Configuration/CustomizableFileSettingsProvider.cs:
	* System/System.Configuration/ApplicationSettingsBase.cs:
	* System.Configuration/System.Configuration/ClientConfigurationSystem.cs:
	* System.Configuration/System.Configuration/ConfigurationManager.cs:
	Generate the same file name for the local settings file and properly
	save the configuration to it. Not loading it yet.


svn path=/trunk/mcs/; revision=117573
2008-10-31 17:36:16 +00:00
Gert Driesen 2b4812d44a * CustomizableFileSettingsProvider.cs (LoadPropertyValue): Do not
hide ArgumentException.

svn path=/trunk/mcs/; revision=114883
2008-10-05 09:13:33 +00:00
Gonzalo Paniagua Javier 1cd9846abc 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: when reading application or
	user settings, only read those settings appropriate for the context.
	This avoids duplicate key errors when 2 different groups have a key
	with the same name.
	* ApplicationSettingsBase.cs: the context is a hashtable with several
	values set upon creation: SettingsKey, GroupName and
	SettingsClassType.

	Fixes bug #432466.


svn path=/trunk/mcs/; revision=114853
2008-10-04 21:50:11 +00:00
Marek Safar bdd9de656e Fixed few warnings
svn path=/trunk/mcs/; revision=107455
2008-07-08 10:34:18 +00:00
Atsushi Eno c8b85d4810 2008-03-21 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : fix possible NRE for
          SettingsContext.Current.


svn path=/trunk/mcs/; revision=98719
2008-03-21 08:33:52 +00:00
Atsushi Eno 91ee096b4a 2008-03-21 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : some hash calculation
	  improvements by the author.


svn path=/trunk/mcs/; revision=98718
2008-03-21 03:52:15 +00:00
Atsushi Eno 831474bc3b 2008-03-14 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : cosmetic header fix
	  requested by the author.


svn path=/trunk/mcs/; revision=98295
2008-03-14 17:12:26 +00:00
Atsushi Eno ee6b478c4e 2007-11-21 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : when a property is found
	  only in the config file and not in the corresponding config type,
	  do not raise NRE but just add it as a simple property value.
	  Fixed bug #343459.


svn path=/trunk/mcs/; revision=90108
2007-11-21 19:53:26 +00:00
Marek Safar e61dde083e Warnings cleanup
svn path=/trunk/mcs/; revision=89678
2007-11-15 14:14:49 +00:00
Atsushi Eno d694d4f81e 2007-11-06 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : Type.Namespace can be null.
	  MSDN documentation is kind of wrong here.


svn path=/trunk/mcs/; revision=88956
2007-11-06 09:43:48 +00:00
Arina Itkes e86d0f17f3 TARGET_JVM: return flow to the version before revision 80469
svn path=/trunk/mcs/; revision=88815
2007-11-04 10:30:24 +00:00
Konstantin Triger aa9036256a TARGET_JVM: Environment.GetFolderPath is not supported.
svn path=/trunk/mcs/; revision=84093
2007-08-14 16:16:50 +00:00
Noam Lampert 388cd278d6 Fix compilation in java
svn path=/trunk/mcs/; revision=80990
2007-06-28 18:53:00 +00:00
Atsushi Eno a351e7c4ea 2007-06-21 Atsushi Enomoto <[email protected]>
* SettingValueElement.cs : implement Reset().
	* CustomizableFileSettingsProvider.cs : fixed company name getter
	  and product name getter.
	  LoadPropertyValue() should expect null ValueXml.
	* LocalFileSettingsProvider.cs : time to switch. With a bit of
	  directory name difference, it should work.


svn path=/trunk/mcs/; revision=80469
2007-06-21 13:13:51 +00:00
Atsushi Eno 67e9911781 2007-06-13 Atsushi Enomoto <[email protected]>
* CustomizableLocalFileSettingsProvider.cs :
	  - added extern alias to avoid reference and I could enable
	    Initialize() again.
	  - Copied default user config path stuff (Company/Product/Version)
	    from MWF Application.cs.
	  - SaveProperties() and SavePropertiesNoRoaming() are unified, and
	    mostly rewritten to create userSettings, set value correctly, etc.
	  - GetPropertyValues() should collect default values as well.

	  It is not enabled yet, as Configuration.Save() seems to do wrong
	  and could overwrite application exe.config.


svn path=/trunk/mcs/; revision=79474
2007-06-13 18:35:58 +00:00
Atsushi Eno 96d90229c1 2007-06-04 Atsushi Enomoto <[email protected]>
* CustomizableLocalFileSettingsProvider.cs : contribution for
	  LocalFileSettingsProvider implementation, by Noriaki Okimoto
	  ([email protected]), modified by myself to fit for System.dll.
	  Origin of code license assignment at
	  http://ojk.sppd.ne.jp/ojkblog/?date=20070603#p01.
	* LocalFileSettingsProvider.cs : rewriting to use above.

	  Due to some kind of compiler issue it is not enabled yet.

	* System.dll.sources :
	  added CustomizableLocalFileSettingsProvider.cs.


svn path=/trunk/mcs/; revision=78561
2007-06-04 14:03:54 +00:00