Commit Graph
315 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 405ec62f26 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* Test/System.ComponentModel/ContainerTest.cs:
	* System.ComponentModel/Container.cs: 'unsite' the component when
	removing it. Fixes bug #79255. Patch by Ivan N. Zlatev.


svn path=/trunk/mcs/; revision=65261
2006-09-11 22:57:06 +00:00
Gonzalo Paniagua Javier 35a49d5a64 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* Test/System.ComponentModel/TypeDescriptorTests.cs: test for overriden
	attributes.
	* System.ComponentModel/TypeDescriptor.cs: don't ignore toplevel
	attributes when they are overriden.

	Patch by Ivan N. Zlatev that fixes bug #79256.


svn path=/trunk/mcs/; revision=65242
2006-09-11 16:45:06 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Gert Driesen f678ff49a5 * InvalidEnumArgumentException.cs: Beautify error message.
svn path=/trunk/mcs/; revision=64077
2006-08-20 09:04:01 +00:00
Raja R Harinath 0b83d5af45 * IRaiseItemChangedEvents.cs: Add. Mentioned in #79012.
svn path=/trunk/mcs/; revision=63717
2006-08-14 12:55:27 +00:00
Miguel de Icaza 693d6324d1 Fix namespace
svn path=/trunk/mcs/; revision=63690
2006-08-14 01:08:57 +00:00
Sebastien Pouliot 7af1580018 2006-07-31 Sebastien Pouliot <[email protected]>
* InvalidEnumArgumentException.cs: Updated to 2.0.
	* LicenseException.cs: Updated to 2.0. Add a demand for 
	SerializationFormatter on GetObjectData method.
	* TypeDescriptor.cs: Add linkdemand for ReflectionPermission on 
	CreateEvent and CreateProperties methods. Add linkdemand for 
	unrestricted on ComNativeDescriptorHandler get/set.
	* WarningException.cs: Updated to 2.0. Add a demand for 
	SerializationFormatter on GetObjectData method.
	* Win32Exception.cs: Add a demand for SerializationFormatter on 
	GetObjectData method.


svn path=/trunk/mcs/; revision=63178
2006-07-31 13:30:22 +00:00
Peter Dennis Bartok 80b635ec5f 2006-07-14 Peter Dennis Bartok <[email protected]>
* System.dll.sources: Added System.ComponentModel/MaskedTextResultHint.cs

2006-07-14  Peter Dennis Bartok  <[email protected]>

	* MaskedTextResultHint.cs: Added


svn path=/trunk/mcs/; revision=62608
2006-07-14 16:18:49 +00:00
Gert Driesen f1c67c6a48 * TypeConverter.cs: Added explicit interface implementation for
ICollection.CopyTo and IEnumerable.GetEnumerator. Fixes corcompare
warnings.
* Component.cs: Remove TypeConverter attribute. Fixes corcompare
warning.
* AttributeCollection.cs: Added explicit interface implemenation for
IEnumerable.GetEnumerator, IList.RemoveAt and ICollection.Count.
Fixes corcompare warnings.
* PropertyDescriptorCollection.cs: Added explicit interface
implemenation for ICollection.Count. Fixes corcompare warning.

svn path=/trunk/mcs/; revision=61323
2006-05-31 13:20:33 +00:00
Atsushi Eno e37046098b 2006-05-22 Atsushi Enomoto <[email protected]>
* TypeDescriptor.cs : GetProperties() does not return indexers.

	* TypeDescriptorTest.cs : added GetPropertiesIgnoreIndexers().


svn path=/trunk/mcs/; revision=60947
2006-05-22 15:23:02 +00:00
Atsushi Eno 5ca07bbea4 2006-05-11 Atsushi Enomoto <[email protected]>
* ReflectionPropertyDescriptor.cs,
	  DerivedPropertyDescriptor.cs : invoke OnValueChanged() when
	  the value was successfully changed. It is needed to have
	  MWF PropertyGrid change properties successfully.


svn path=/trunk/mcs/; revision=60601
2006-05-11 17:25:29 +00:00
Atsushi Eno 3f1b116ef3 2006-05-08 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs : SynchronizationContext.OperationStarted()
	  should not be called more than once. So move it from Post() to
	  .ctor(). Thanks again to cl.


svn path=/trunk/mcs/; revision=60399
2006-05-08 11:28:22 +00:00
Atsushi Eno dd4a68fbba 2006-05-08 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs : call OperationStared() at Post(). Call
	  OperationCompleted() at the finalizer. Thanks to cl.


svn path=/trunk/mcs/; revision=60398
2006-05-08 10:09:53 +00:00
Atsushi Eno e83a8ae7ee 2006-05-08 Atsushi Enomoto <[email protected]>
* System.dll.sources : added SettingsBindableAttribute.cs.

	* SettingsBindableAttribute.cs : new file. Bug #78333 is fixed.


svn path=/trunk/mcs/; revision=60393
2006-05-08 06:12:13 +00:00
Miguel de Icaza 5b04256587 svn path=/trunk/mcs/; revision=60025 2006-04-28 02:55:58 +00:00
Miguel de Icaza d0f5a44f83 Nothing to see here, move along
svn path=/trunk/mcs/; revision=59951
2006-04-26 21:12:08 +00:00
Miguel de Icaza bd78760dff 2006-04-26 Miguel de Icaza <[email protected]>
* TypeDescriptor.cs (Info.GetProperties, TypeInfo.GetProperties):
	Use the more specific GetProperties call so we do not return
	static properties, should fix that part of the PropertyGrid bug
	#78192.

	Code formatting police hit again.

svn path=/trunk/mcs/; revision=59948
2006-04-26 20:56:24 +00:00
Miguel de Icaza cd0e3e4e9c 2006-04-26 Miguel de Icaza <[email protected]>
* ReflectionPropertyDescriptor.cs (CanResetvalue): Do not
	dereference a null value, avoids crash in property grid.

	Code formatting police. 

svn path=/trunk/mcs/; revision=59944
2006-04-26 19:46:04 +00:00
Miguel de Icaza 7938830e92 Improve error message
svn path=/trunk/mcs/; revision=59890
2006-04-25 23:37:10 +00:00
Miguel de Icaza 033abbfaaa 2006-04-25 Miguel de Icaza <[email protected]>
* TypeConverter.cs (ConvertFrom): Do not crash if we are passed a
	null value. 

svn path=/trunk/mcs/; revision=59887
2006-04-25 23:20:01 +00:00
Atsushi Eno 68694ee948 2006-04-25 Atsushi Enomoto <[email protected]>
* BaseNumberConverter.cs : (ConvertTo) regardless of InnerType,
	  it converts the argument value to InnerType using supplied format.
	  (It might be not limited to NET_2_0 but it's too cosmetic to dig
	  into the problem. At least this is for run-test-ondotnet fixes.)

	* ByteConverterTests.cs,
	  DecimalConverterTests.cs,
	  DoubleConverterTests.cs,
	  Int16ConverterTests.cs,
	  Int64ConverterTests.cs,
	  SByteConverterTests.cs,
	  SingleConverterTests.cs,
	  UInt16ConverterTests.cs,
	  UInt32ConverterTests.cs,
	  UInt64ConverterTests.cs:
	  ConvertToString() (test with custom culture) failed on .NET 2.0.
	  Fixed it by adding NumberFormat override in each test culture.


svn path=/trunk/mcs/; revision=59860
2006-04-25 16:43:57 +00:00
Atsushi Eno ce95277afa 2006-04-17 Atsushi Enomoto <[email protected]>
* BackgroundWorker.cs, RunWorkerCompletedEventArgs.cs :
	  cosmetic attribute fixes.


svn path=/trunk/mcs/; revision=59533
2006-04-17 11:14:07 +00:00
Atsushi Eno 574b90cd78 2006-04-17 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs,
	  AsyncOperationManager.cs
	  BackgroundWorker.cs
	  DoWorkEventArgs.cs
	  DoWorkEventHandler.cs
	  RunWorkerCompletedEventArgs.cs
	  RunWorkerCompletedEventHandler.cs :
	  Initial implementation of AsyncOperation and BackgroundWorker.

	  (However I think it does not work as expected - it depends on
	  SynchronizationContext.Post() and I doubt it works fine - the
	  callback should run synchronously while it does not look so.)

	* System.dll.sources : Added AsyncOperation.cs,
	  AsyncOperationManager.cs, BackgroundWorker.cs,
	  DoWorkEventHandler.cs, DoWorkEventArgs.cs,
	  RunWorkerCompletedEventArgs.cs and
	  RunWorkerCompletedEventHandler.cs.


svn path=/trunk/mcs/; revision=59532
2006-04-17 10:56:45 +00:00
Atsushi Eno f306f4ae0b 2006-03-30 Atsushi Enomoto <[email protected]>
* AsyncCompletedEventArgs.cs : constructor did not initialize fields.


svn path=/trunk/mcs/; revision=58770
2006-03-30 04:09:04 +00:00
Atsushi Eno 6c4b199ce6 2006-03-28 Atsushi Enomoto <[email protected]>
* System.dll.sources : added ProgressChangedEvent[Args|Handler] in
	  System.ComponentModel, and several WebClient event args in
	  System.Net.

	* ProgressChangedEventHandler.cs ProgressChangedEventArgs.cs :
	  added 2.0 types.

	* DownloadDataCompletedEventArgs.cs
	  DownloadDataCompletedEventHandler.cs
	  DownloadProgressChangedEventArgs.cs
	  DownloadProgressChangedEventHandler.cs
	  DownloadStringCompletedEventArgs.cs
	  OpenReadCompletedEventArgs.cs
	  OpenReadCompletedEventHandler.cs
	  OpenWriteCompletedEventArgs.cs
	  OpenWriteCompletedEventHandler.cs
	  UploadDataCompletedEventArgs.cs
	  UploadDataCompletedEventHandler.cs
	  UploadFileCompletedEventArgs.cs
	  UploadFileCompletedEventHandler.cs
	  UploadProgressChangedEventArgs.cs
	  UploadProgressChangedEventHandler.cs
	  UploadStringCompletedEventArgs.cs
	  UploadStringCompletedEventHandler.cs
	  UploadValuesCompletedEventArgs.cs
	  UploadValuesCompletedEventHandler.cs : added 2.0 types.


svn path=/trunk/mcs/; revision=58647
2006-03-28 10:18:20 +00:00
Pedro Martínez Juliá d8187c87ca 2006-02-26 Pedro Martinez Julia <[email protected]>
* HandledEventHandler.cs: Resolving a "Replaced" SVN flag.


svn path=/trunk/mcs/; revision=57295
2006-02-26 01:18:45 +00:00
Andrew Skiba 470cecb9dc performance improvement for TypeDescriptor.GetAttributes,GetProperties and GetEvents. See the standalone test for the use case.
svn path=/trunk/mcs/; revision=57197
2006-02-23 11:40:25 +00:00
Gonzalo Paniagua Javier 06856bd680 2006-01-31 Gonzalo Paniagua Javier <[email protected]>
* Container.cs: patch by Brian Crowell that fixes GetService().


svn path=/trunk/mcs/; revision=56428
2006-02-01 23:20:48 +00:00
Chris Toshok 194c5380ff 2006-01-22 Chris Toshok <[email protected]>
* DesignerSerializationVisibilityAttribute.cs: in the 2.0 case,
	this attribute is valid on fields and events as well.


svn path=/trunk/mcs/; revision=55918
2006-01-22 21:15:47 +00:00
Zoltan Varga 134d16fc53 2005-11-19 Zoltan Varga <[email protected]>
* TypeDescriptor.cs: Small changes to make this more compliant with
	MSDN docs and actual MS behaviour.

svn path=/trunk/mcs/; revision=53272
2005-11-19 16:34:46 +00:00
Jordi Mas i Hernandez 07d3ddb453 2005-11-07 Pedro Martinez Julia <[email protected]>
* IBindingListView.cs Initial implementation
	* HandledEventArgs.cs Initial implementation
	* HandledEventHandler.cs Initial implementation
	* ListSortDescription.cs: Initial implementation
	* ListSortDescriptionCollection.cs: Initial implementation


svn path=/trunk/mcs/; revision=52669
2005-11-07 22:53:17 +00:00
Dick Porter ac7dabd937 2005-10-31 Dick Porter <[email protected]>
* Win32Exception.cs: Add another error code.



svn path=/trunk/mcs/; revision=52414
2005-10-31 18:37:08 +00:00
Chris Toshok 4f22d834a5 2005-09-20 Chris Toshok <[email protected]>
* INotifyPropertyChanged.cs: new interface.


svn path=/trunk/mcs/; revision=50347
2005-09-21 00:39:54 +00:00
Gert Driesen 126eee6f86 * TypeConverterTests.cs: Added tests for TypeConverter.
* PropertyDescriptorCollection.cs: Added tests for PropertyDescriptorCollection.
* TypeDescriptor.cs: Remove usage of removed internal
PropertyDescriptorCollection ctor. Return read-only collection.
* PropertyDescriptorCollection.cs: Removed internal ctor taking
ArrayList. Add ctor for making read-only collection. Added
read-only checks. Implemented IsReadOnly and IsFixedSize. Empty now
returns read-only collection to match MS.NET.
* System_test.dll.sources: Added TypeConverterTest.cs and
PropertyDescriptorCollection.cs.

svn path=/trunk/mcs/; revision=50242
2005-09-19 16:52:34 +00:00
Gert Driesen 0d7cea4ba7 * TypeConverter.cs: Only return browsable properties in GetProperties.
svn path=/trunk/mcs/; revision=49939
2005-09-12 11:46:15 +00:00
Gert Driesen cdfb192c91 * DateTimeConverterTests.cs: Added tests for DateTimeConverter.
* DateTimeConverter.cs: ConvertTo must return zero-length string
for DateTime.MinValue. Use CultureInfo.GetFormat to obtain
DateTimeFormatInfo to match MS.NET.
* System_test.dll.sources: Added DateTimeConverterTests.cs.

svn path=/trunk/mcs/; revision=49013
2005-08-28 07:36:26 +00:00
Gonzalo Paniagua Javier 9bed37a8e9 2005-08-27 Gonzalo Paniagua Javier <[email protected]>
* TypeDescriptor.cs: remove double lock in DefaultConverter.


svn path=/trunk/mcs/; revision=48981
2005-08-27 18:02:52 +00:00
Gert Driesen f2289de628 * ByteConverterTests.cs: Added ConvertToString and ConvertFromString
tests with culture that has overriden GetFormat for NumberFormatInfo.
* DecimalConverterTests.cs: same.
* DoubleConverterTests.cs: same.
* Int16ConverterTests.cs: same.
* Int32ConverterTests.cs: same.
* Int64ConverterTests.cs: same.
* SByteConverterTests.cs: same.
* SingleConverterTests.cs: same.
* UInt16ConverterTests.cs: same.
* UInt32ConverterTests.cs: same.
* UInt64ConverterTests.cs: same.
* BaseNumberConverter.cs: Use CultureInfo.GetFormat to obtain
NumberFormatInfo to match MS.NET. Added ConvertToString abstract
method for conversion to string.
* ByteConverter.cs: Implemented ConvertToString.
* DecimalConverter.cs: Implemented ConvertToString.
* DoubleConverter.cs: Implemented ConvertToString.
* Int16Converter.cs: Implemented ConvertToString.
* Int32Converter.cs: Implemented ConvertToString.
* Int64Converter.cs: Implemented ConvertToString.
* SByteConverter.cs: Implemented ConvertToString.
* SingleConverter.cs: Implemented ConvertToString.
* UInt16Converter.cs: Implemented ConvertToString.
* UInt32Converter.cs: Implemented ConvertToString.
* UInt64Converter.cs: Implemented ConvertToString.

svn path=/trunk/mcs/; revision=48904
2005-08-26 20:08:40 +00:00
Sebastien Pouliot 7da281952c comment security attributes as CSC has trouble digesting them
svn path=/trunk/mcs/; revision=48557
2005-08-19 14:05:47 +00:00
Gert Driesen aaf73fa6d4 * SingleConverter.cs: Implement conversion from string to match MS.NET.
Set eol-style to native.
* TypeConverter.cs: Always support conversion from InstanceDescriptor. Set
eol-style to native.
* UInt16Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* SByteConverter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* Int16Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* UInt64Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* DecimalConverter.cs: Implement conversion from string to match MS.NET.
Set eol-style to native.
* Int64Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* UInt32Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* Int32Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* DoubleConverter.cs: Implement conversion from string to match MS.NET. Set
eol-style to native.
* BaseNumberConverter.cs: Support conversion from string containing hex
prefixes. Set eol-style to native.
* ByteConverter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.

svn path=/trunk/mcs/; revision=48543
2005-08-19 08:04:00 +00:00
Gert Driesen 12c0390838 * EditorBrowsableState.cs: Changed line ending from CRLF to LF to
match other sources. Set eol-style to native.
* ExtenderProvidedPropertyAttribute.cs: Changed line ending from CRLF
to LF to match other sources. Set eol-style to native.
* RefreshEventHandler.cs: Changed line ending from CRLF to LF to match
other sources. Set eol-style to native.
* TypeDescriptor.cs: Changed line ending from CRLF to LF to match
other sources. Set eol-style to native.

svn path=/trunk/mcs/; revision=48508
2005-08-18 16:51:40 +00:00
Gert Driesen 228d54377e * ByteConverterTests.cs: Added tests for ByteConverter.
* Int16ConverterTests.cs: Added tests for Int16Converter.
* Int32ConverterTests.cs: Added tests for Int32Converter.
* BaseNumberConverter.cs: In ConvertFrom, wrap all exceptions that
are thrown while converting from string in an Exception.
* System_test.dll.sources: Added ByteConverterTests.cs,
Int16ConverterTests.cs and Int32ConverterTests.cs.
* Makefile: We also need to reference System.Drawing assembly to
build test assembly.

svn path=/trunk/mcs/; revision=48428
2005-08-16 13:12:48 +00:00
Gert Driesen cf11a15f9b * ToolboxItemAttributeTests.cs: Added tests for ToolboxItemAttribute.
* ToolboxItemAttribute.cs: Fixed GetHashCode to correspond with MS.NET.
Fixed initialization order. Throw ArgumentException if item type
cannot be loaded.
* System_test.dll.sources: Added ToolboxItemAttributeTests.cs from
System.ComponentModel.

svn path=/trunk/mcs/; revision=48427
2005-08-16 12:54:01 +00:00
Michael Hutchinson 45225f4d81 ToolboxItem-related fixes
svn path=/trunk/mcs/; revision=48209
2005-08-09 21:53:10 +00:00
Gert Driesen edd7db4891 * IComponent.cs: Fixed Designer attribute to match MS.NET.
* DesignerAttribute.cs: DesignerBaseTypeName defaults to fullname of
IDesigner to match MS.NET.

svn path=/trunk/mcs/; revision=48152
2005-08-09 09:15:37 +00:00
Miguel de Icaza df9107bf8e Further fixes from Michael
svn path=/trunk/mcs/; revision=48093
2005-08-07 22:25:18 +00:00
Miguel de Icaza 7bc67ec4e8 2005-08-07 Michael Hutchinson <[email protected]>
Patch from Michael Hutchinson to make the aspnet editor work. 
	
	* ReflectionPropertyDescriptor.cs: Create transactions and raise
	component change events for all IComponents, not just base
	implementation 'Component' derivatives.

	* MemberDescriptor.cs: Make members 'Browsable' by default, as per
	MS spec.

	* PropertyDescriptor.cs: Changed default
	DesignerSerializationVisibility value to Visible rather than
	Hidden, as per MS spec.

svn path=/trunk/mcs/; revision=48090
2005-08-07 18:32:53 +00:00
Miguel de Icaza 7aeeea3f25 Small update
svn path=/trunk/mcs/; revision=47568
2005-07-22 20:16:26 +00:00
Gonzalo Paniagua Javier 915ffe78ff 2005-07-21 Gonzalo Paniagua Javier <[email protected]>
* TypeDescriptor.cs: (GetProperties) throw exception if 'component' is
	null.


svn path=/trunk/mcs/; revision=47524
2005-07-21 18:04:41 +00:00
Sebastien Pouliot 0921872c78 2005-06-30 Sebastien Pouliot <[email protected]>
* Win32Exception.cs: Added some declarative security (permission from
	corlib) as an initial test (outside corlib). Added new constructors
	for NET_2_0.


svn path=/trunk/mcs/; revision=46779
2005-06-30 18:03:55 +00:00