- Timestamp:
- 04/18/10 02:27:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableSet.cs
r3370 r3390 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Common;27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 26 29 27 namespace HeuristicLab.Collections { 30 28 [Serializable] 31 [StorableClass]32 29 public class ReadOnlyObservableSet<T> : IObservableSet<T> { 33 [Storable] 34 private IObservableSet<T> set; 30 protected IObservableSet<T> set; 35 31 36 32 #region Properties 37 public bool ReadOnlyView {38 get { return true; }39 set { }40 }41 42 33 public int Count { 43 34 get { return set.Count; } … … 134 125 135 126 #region Events 136 [StorableHook(HookType.AfterDeserialization)]137 127 protected void RegisterEvents() { 138 128 set.ItemsAdded += new CollectionItemsChangedEventHandler<T>(set_ItemsAdded); … … 140 130 set.CollectionReset += new CollectionItemsChangedEventHandler<T>(set_CollectionReset); 141 131 set.PropertyChanged += new PropertyChangedEventHandler(set_PropertyChanged); 142 }143 144 event EventHandler IContent.ReadOnlyViewChanged {145 add { }146 remove { }147 132 } 148 133
Note: See TracChangeset
for help on using the changeset viewer.