2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
commit87b7aaf16e878be49a94b66ce81e24d6ae0198d3
authorcalberto <calberto@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Tue, 14 Aug 2007 23:48:22 +0000 (14 23:48 +0000)
committercalberto <calberto@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Tue, 14 Aug 2007 23:48:22 +0000 (14 23:48 +0000)
treef60986816e704c85c8a6a656099393a34f6ff445
parent6f6203aa1473a519e0ba96e3add832367545d17a
2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: In ListViewItemCollection have a
'is_main_collection' field to not modify ListViewItem.ListView
when using it as ListViewGroup.Items (and not ListView.Items)
and also don't modify selection state (.Net behaviour).
Instead, set group for items contained in a ListViewGroup.Items collection.
* ListViewItem.cs: Simplify some code in Group setter.
* ListViewGroup.cs: use the new .ctor to pass the current instance
to the ItemsCollection.
* ListViewGroup.cs: Set the ListView property for ListViewGroup
instances when adding/removing. Also make Remove use RemoveAt, which
should perform better.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@84125 e3ebcda4-bce8-0310-ba0a-eca2169e7518
class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
class/Managed.Windows.Forms/System.Windows.Forms/ListViewGroup.cs
class/Managed.Windows.Forms/System.Windows.Forms/ListViewGroupCollection.cs
class/Managed.Windows.Forms/System.Windows.Forms/ListViewItem.cs