In .:
authorChris Toshok <toshok@novell.com>
Tue, 20 Jun 2006 16:01:14 +0000 (16:01 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 20 Jun 2006 16:01:14 +0000 (16:01 -0000)
commitcb08f6394279b801dfa731c0147e359b5cd43bac
tree41dd50bb60613ea68617c25765423ed21ad906ad
parent31ccece07d2022c1be8d835d15d97f86115ee069
In .:
2006-06-20  Chris Toshok  <toshok@ximian.com>

* System.Windows.Forms.dll.sources: add RelatedPropertyManager.cs
and RelatedCurrencyManager.cs.

In System.Windows.Forms:
2006-06-20  Chris Toshok  <toshok@ximian.com>

* BindingContext.cs: rewrite the CreateBindingManager code to
handle navigation paths more or less properly.  This could
definitely stand some more work, in particular to push the
recursion up to the toplevel.  But that relies on fixes in other
places (System.Data comes to mind).

Also, move to a flat hashtable (and encode the twolevel nature of
the dictionary into the hash key).  This lets us implement the
IEnumerable.GetEnumerator method.

* RelatedCurrencyManager.cs: new class.  Update our view based on
our relation and our parent CurrencyManager's position.

* CurrencyManager.cs: split out some logic from the ctor into
SetView, so it can be called from the new RelatedCurrencyManager
subclass.

* RelatedPropertyManager.cs: new class.  Update our datasource
based on the position of our parent CurrencyManager.

* PropertyManager.cs: split out some logic from the ctor into
SetDataSource, so it can be called from the new RelatedDataSource
subclass.  Also, make the Current getter return the value
of the PropertyDescriptor, not the data_source.

* Binding.cs: no need to duplicate the string splitting code here.

svn path=/trunk/mcs/; revision=61878
mcs/class/Managed.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingContext.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyManager.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/RelatedCurrencyManager.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/RelatedPropertyManager.cs [new file with mode: 0644]