Changeset 3370 for trunk/sources/HeuristicLab.Collections
- Timestamp:
- 04/16/10 13:14:56 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Collections/3.3
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ObservableArray.cs
r3317 r3370 37 37 [Storable] 38 38 private bool readOnlyView; 39 public bool ReadOnlyView {39 public virtual bool ReadOnlyView { 40 40 get { return readOnlyView; } 41 41 set { 42 if ( readOnlyView != value) {42 if ((readOnlyView != value) && !array.IsReadOnly) { 43 43 readOnlyView = value; 44 44 OnReadOnlyViewChanged(); -
trunk/sources/HeuristicLab.Collections/3.3/ObservableCollection.cs
r3317 r3370 36 36 [Storable] 37 37 private bool readOnlyView; 38 public bool ReadOnlyView {38 public virtual bool ReadOnlyView { 39 39 get { return readOnlyView; } 40 40 set { 41 if ( readOnlyView != value) {41 if ((readOnlyView != value) && !((ICollection<T>)list).IsReadOnly) { 42 42 readOnlyView = value; 43 43 OnReadOnlyViewChanged(); -
trunk/sources/HeuristicLab.Collections/3.3/ObservableDictionary.cs
r3317 r3370 37 37 [Storable] 38 38 private bool readOnlyView; 39 public bool ReadOnlyView {39 public virtual bool ReadOnlyView { 40 40 get { return readOnlyView; } 41 41 set { 42 if ( readOnlyView != value) {42 if ((readOnlyView != value) && !((ICollection<KeyValuePair<TKey, TValue>>)dict).IsReadOnly) { 43 43 readOnlyView = value; 44 44 OnReadOnlyViewChanged(); -
trunk/sources/HeuristicLab.Collections/3.3/ObservableKeyedCollection.cs
r3317 r3370 37 37 [Storable] 38 38 private bool readOnlyView; 39 public bool ReadOnlyView {39 public virtual bool ReadOnlyView { 40 40 get { return readOnlyView; } 41 41 set { 42 if ( readOnlyView != value) {42 if ((readOnlyView != value) && !((ICollection<KeyValuePair<TKey, TItem>>)dict).IsReadOnly) { 43 43 readOnlyView = value; 44 44 OnReadOnlyViewChanged(); -
trunk/sources/HeuristicLab.Collections/3.3/ObservableList.cs
r3317 r3370 36 36 [Storable] 37 37 private bool readOnlyView; 38 public bool ReadOnlyView {38 public virtual bool ReadOnlyView { 39 39 get { return readOnlyView; } 40 40 set { 41 if ( readOnlyView != value) {41 if ((readOnlyView != value) && !((ICollection<T>)list).IsReadOnly) { 42 42 readOnlyView = value; 43 43 OnReadOnlyViewChanged(); -
trunk/sources/HeuristicLab.Collections/3.3/ObservableSet.cs
r3317 r3370 37 37 [Storable] 38 38 private bool readOnlyView; 39 public bool ReadOnlyView {39 public virtual bool ReadOnlyView { 40 40 get { return readOnlyView; } 41 41 set { 42 if ( readOnlyView != value) {42 if ((readOnlyView != value) && !((ICollection<T>)set).IsReadOnly) { 43 43 readOnlyView = value; 44 44 OnReadOnlyViewChanged(); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableArray.cs
r3368 r3370 37 37 public bool ReadOnlyView { 38 38 get { return true; } 39 set { throw new NotSupportedException();}39 set { } 40 40 } 41 41 -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableCollection.cs
r3368 r3370 37 37 public bool ReadOnlyView { 38 38 get { return true; } 39 set { throw new NotSupportedException();}39 set { } 40 40 } 41 41 -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableDictionary.cs
r3368 r3370 37 37 public bool ReadOnlyView { 38 38 get { return true; } 39 set { throw new NotSupportedException();}39 set { } 40 40 } 41 41 -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableKeyedCollection.cs
r3368 r3370 35 35 36 36 #region Properties 37 public bool ReadOnlyView {37 public virtual bool ReadOnlyView { 38 38 get { return true; } 39 39 set { throw new NotSupportedException(); } -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableList.cs
r3368 r3370 37 37 public bool ReadOnlyView { 38 38 get { return true; } 39 set { throw new NotSupportedException();}39 set { } 40 40 } 41 41 -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableSet.cs
r3368 r3370 37 37 public bool ReadOnlyView { 38 38 get { return true; } 39 set { throw new NotSupportedException();}39 set { } 40 40 } 41 41
Note: See TracChangeset
for help on using the changeset viewer.