- Timestamp:
- 04/18/10 02:27:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableCollection.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 ReadOnlyObservableCollection<T> : IObservableCollection<T> { 33 [Storable] 34 private IObservableCollection<T> collection; 30 protected IObservableCollection<T> collection; 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 collection.Count; } … … 93 84 94 85 #region Events 95 [StorableHook(HookType.AfterDeserialization)]96 86 protected void RegisterEvents() { 97 87 collection.ItemsAdded += new CollectionItemsChangedEventHandler<T>(collection_ItemsAdded); … … 101 91 } 102 92 103 event EventHandler IContent.ReadOnlyViewChanged {104 add { }105 remove { }106 }107 93 108 94 [field: NonSerialized]
Note: See TracChangeset
for help on using the changeset viewer.