diff options
author | Jo Shields <directhex@apebox.org> | 2014-02-19 22:12:43 +0000 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2014-02-19 22:12:43 +0000 |
commit | 9972bf87b4f27d9c8f358ef8414ac1ab957a2f0f (patch) | |
tree | 5bb230c1d698659115f918e243c1d4b0aa4c7f51 /mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs | |
parent | d0a215f5626219ff7927f576588a777e5331c7be (diff) | |
download | mono-upstream/3.2.8+dfsg.tar.gz |
Imported Upstream version 3.2.8+dfsgupstream/3.2.8+dfsg
Diffstat (limited to 'mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs')
-rw-r--r-- | mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs b/mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs index ed9d824c33..edc1a624b2 100644 --- a/mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs +++ b/mcs/class/WindowsBase/System.ComponentModel/GroupDescription.cs @@ -31,12 +31,15 @@ namespace System.ComponentModel { public abstract class GroupDescription : INotifyPropertyChanged { + readonly ObservableCollection<object> groupNames; + protected GroupDescription () { + groupNames = new ObservableCollection<object> (); } public ObservableCollection<object> GroupNames { - get { throw new NotImplementedException (); } + get { return groupNames; } } event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged { @@ -48,7 +51,7 @@ namespace System.ComponentModel { public virtual bool NamesMatch (object groupName, object itemName) { - throw new NotImplementedException (); + return Equals (groupName, itemName); } protected virtual void OnPropertyChanged (PropertyChangedEventArgs e) @@ -60,7 +63,7 @@ namespace System.ComponentModel { [EditorBrowsable (EditorBrowsableState.Never)] public bool ShouldSerializeGroupNames () { - throw new NotImplementedException (); + return GroupNames.Count != 0; } public abstract object GroupNameFromItem (object item, int level, CultureInfo culture); |