Changeset 3002 for trunk/sources
- Timestamp:
- 03/11/10 10:55:48 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableArray.cs
r2994 r3002 33 33 private IObservableArray<T> array; 34 34 35 #region Persistence 36 private ReadOnlyObservableArray() { } 37 38 [StorableHook(HookType.AfterDeserialization)] 39 private void PostDeserializationHook() { 40 RegisterEvents(); 41 } 42 #endregion 43 35 44 #region Properties 36 45 public int Length { … … 53 62 #endregion 54 63 64 65 55 66 #region Constructors 56 67 public ReadOnlyObservableArray(IObservableArray<T> array) { 57 68 if (array == null) throw new ArgumentNullException(); 58 69 this.array = array; 70 RegisterEvents(); 71 } 72 73 private void RegisterEvents() { 59 74 array.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_ItemsReplaced); 60 75 array.ItemsMoved += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_ItemsMoved); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableCollection.cs
r2994 r3002 33 33 private IObservableCollection<T> collection; 34 34 35 #region persistence 36 private ReadOnlyObservableCollection() { } 37 38 [StorableHook(HookType.AfterDeserialization)] 39 private void PostDeserializationHook() { 40 RegisterEvents(); 41 } 42 #endregion 43 35 44 #region Properties 36 45 public int Count { … … 46 55 if (collection == null) throw new ArgumentNullException(); 47 56 this.collection = collection; 57 RegisterEvents(); 58 } 59 60 private void RegisterEvents() { 48 61 collection.ItemsAdded += new CollectionItemsChangedEventHandler<T>(collection_ItemsAdded); 49 62 collection.ItemsRemoved += new CollectionItemsChangedEventHandler<T>(collection_ItemsRemoved); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableDictionary.cs
r2994 r3002 33 33 private IObservableDictionary<TKey, TValue> dict; 34 34 35 #region persistence 36 private ReadOnlyObservableDictionary() { } 37 38 [StorableHook(HookType.AfterDeserialization)] 39 private void PostDeserizlationHook() { 40 RegisterEvents(); 41 } 42 #endregion 43 35 44 #region Properties 36 45 public ICollection<TKey> Keys { … … 60 69 if (dictionary == null) throw new ArgumentNullException(); 61 70 dict = dictionary; 71 RegisterEvents(); 72 } 73 74 private void RegisterEvents() { 62 75 dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded); 63 76 dict.ItemsRemoved += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsRemoved); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableKeyedCollection.cs
r2994 r3002 33 33 private IObservableKeyedCollection<TKey, TItem> collection; 34 34 35 #region persistence 36 private ReadOnlyObservableKeyedCollection() { } 37 38 [StorableHook(HookType.AfterDeserialization)] 39 private void PostDeserizlationHook() { 40 RegisterEvents(); 41 } 42 #endregion 43 35 44 #region Properties 36 45 public int Count { … … 52 61 if (collection == null) throw new ArgumentNullException(); 53 62 this.collection = collection; 63 RegisterEvents(); 64 } 65 66 private void RegisterEvents() { 54 67 collection.ItemsAdded += new CollectionItemsChangedEventHandler<TItem>(collection_ItemsAdded); 55 68 collection.ItemsRemoved += new CollectionItemsChangedEventHandler<TItem>(collection_ItemsRemoved); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableList.cs
r2994 r3002 33 33 private IObservableList<T> list; 34 34 35 #region persistence 36 private ReadOnlyObservableList() { } 37 38 [StorableHook(HookType.AfterDeserialization)] 39 private void PostDeserizlationHook() { 40 RegisterEvents(); 41 } 42 #endregion 43 35 44 #region Properties 36 45 public int Count { … … 54 63 if (list == null) throw new ArgumentNullException(); 55 64 this.list = list; 65 RegisterEvents(); 66 } 67 68 private void RegisterEvents() { 56 69 list.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<T>>(list_ItemsAdded); 57 70 ((IObservableCollection<T>)list).ItemsAdded += new CollectionItemsChangedEventHandler<T>(list_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableSet.cs
r2994 r3002 33 33 private IObservableSet<T> set; 34 34 35 #region persistence 36 private ReadOnlyObservableSet() { } 37 38 [StorableHook(HookType.AfterDeserialization)] 39 private void PostDeserizlationHook() { 40 RegisterEvents(); 41 } 42 #endregion 43 35 44 #region Properties 36 45 public int Count { … … 46 55 if (set == null) throw new ArgumentNullException(); 47 56 this.set = set; 57 RegisterEvents(); 58 } 59 60 private void RegisterEvents() { 48 61 set.ItemsAdded += new CollectionItemsChangedEventHandler<T>(set_ItemsAdded); 49 62 set.ItemsRemoved += new CollectionItemsChangedEventHandler<T>(set_ItemsRemoved); -
trunk/sources/HeuristicLab.Persistence/3.3/Default/DebugString/DebugString.cs
r2994 r3002 16 16 public string Data { get; set; } 17 17 18 private DebugString() { } 19 18 20 public DebugString(string s) { 19 21 Data = s; -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlString.cs
r2994 r3002 12 12 public string Data { get; private set; } 13 13 14 private XmlString() { } 15 14 16 public XmlString(string data) { 15 17 Data = data;
Note: See TracChangeset
for help on using the changeset viewer.