- Timestamp:
- 04/18/10 02:27:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableDictionary.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 ReadOnlyObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> { 33 [Storable] 34 private IObservableDictionary<TKey, TValue> dict; 30 protected IObservableDictionary<TKey, TValue> dict; 35 31 36 32 #region Properties 37 public bool ReadOnlyView {38 get { return true; }39 set { }40 }41 42 33 public ICollection<TKey> Keys { 43 34 get { return dict.Keys; } … … 120 111 121 112 #region Events 122 [StorableHook(HookType.AfterDeserialization)]123 113 protected void RegisterEvents() { 124 114 dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded); … … 127 117 dict.CollectionReset += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_CollectionReset); 128 118 dict.PropertyChanged += new PropertyChangedEventHandler(dict_PropertyChanged); 129 }130 131 event EventHandler IContent.ReadOnlyViewChanged {132 add { }133 remove { }134 119 } 135 120
Note: See TracChangeset
for help on using the changeset viewer.