- Timestamp:
- 04/18/10 02:27:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableArray.cs
r3370 r3390 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HeuristicLab.Common;28 26 29 27 namespace HeuristicLab.Collections { 30 28 [Serializable] 31 [StorableClass]32 29 public class ReadOnlyObservableArray<T> : IObservableArray<T> { 33 [Storable] 34 private IObservableArray<T> array; 30 protected IObservableArray<T> array; 35 31 36 32 #region Properties 37 public bool ReadOnlyView {38 get { return true; }39 set { }40 }41 42 33 public int Length { 43 34 get { return array.Length; } … … 115 106 116 107 #region Events 117 [StorableHook(HookType.AfterDeserialization)]118 108 protected void RegisterEvents() { 119 109 array.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_ItemsReplaced); … … 121 111 array.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_CollectionReset); 122 112 array.PropertyChanged += new PropertyChangedEventHandler(array_PropertyChanged); 123 }124 125 event EventHandler IContent.ReadOnlyViewChanged {126 add { }127 remove { }128 113 } 129 114
Note: See TracChangeset
for help on using the changeset viewer.