Changeset 3370 for trunk/sources
- Timestamp:
- 04/16/10 13:14:56 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 17 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 -
trunk/sources/HeuristicLab.Common/3.2/IContent.cs
r3366 r3370 28 28 public interface IContent { 29 29 bool ReadOnlyView { get; set; } 30 30 31 event EventHandler ReadOnlyViewChanged; 31 32 } -
trunk/sources/HeuristicLab.Core/3.3/Item.cs
r3317 r3370 43 43 [Storable] 44 44 private bool readOnlyView; 45 public bool ReadOnlyView {45 public virtual bool ReadOnlyView { 46 46 get { return readOnlyView; } 47 47 set { -
trunk/sources/HeuristicLab.Data/3.3/IStringConvertibleArray.cs
r3317 r3370 24 24 25 25 namespace HeuristicLab.Data { 26 public interface IStringConvertibleArray { 27 bool ReadOnlyView { get; set; } 26 public interface IStringConvertibleArray : IContent { 28 27 int Length { get; set; } 29 28 … … 32 31 bool SetValue(string value, int index); 33 32 34 event EventHandler ReadOnlyViewChanged;35 33 event EventHandler<EventArgs<int>> ItemChanged; 36 34 event EventHandler Reset; -
trunk/sources/HeuristicLab.Data/3.3/IStringConvertibleMatrix.cs
r3320 r3370 25 25 26 26 namespace HeuristicLab.Data { 27 public interface IStringConvertibleMatrix {27 public interface IStringConvertibleMatrix : IContent { 28 28 int Rows { get; set; } 29 29 int Columns { get; set; } … … 31 31 IEnumerable<string> RowNames { get; set; } 32 32 33 bool ReadOnlyView { get; set; }34 33 bool SortableView { get; set; } 35 34 … … 40 39 event EventHandler ColumnNamesChanged; 41 40 event EventHandler RowNamesChanged; 42 event EventHandler ReadOnlyViewChanged;43 41 event EventHandler SortableViewChanged; 44 42 event EventHandler<EventArgs<int, int>> ItemChanged; -
trunk/sources/HeuristicLab.Data/3.3/IStringConvertibleValue.cs
r3317 r3370 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 24 25 namespace HeuristicLab.Data { 25 public interface IStringConvertibleValue { 26 bool ReadOnlyView { get; set; } 27 26 public interface IStringConvertibleValue : IContent { 28 27 bool Validate(string value, out string errorMessage); 29 28 string GetValue(); 30 29 bool SetValue(string value); 31 30 32 event EventHandler ReadOnlyViewChanged;33 31 event EventHandler ValueChanged; 34 32 }
Note: See TracChangeset
for help on using the changeset viewer.