Changeset 4419 for trunk/sources/HeuristicLab.Core/3.3/Collections
- Timestamp:
- 09/16/10 19:26:24 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3/Collections
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs
r4068 r4419 33 33 [Item("ItemArray", "Represents an array of items.")] 34 34 public class ItemArray<T> : ObservableArray<T>, IItemArray<T> where T : class, IItem { 35 private string filename;36 public string Filename {37 get { return filename; }38 set {39 if (value == null) throw new ArgumentNullException();40 if ((filename == null) || !filename.Equals(value)) {41 filename = value;42 OnFilenameChanged();43 }44 }45 }46 47 35 public virtual string ItemName { 48 36 get { return ItemAttribute.GetName(this.GetType()); } … … 83 71 } 84 72 85 public event EventHandler FilenameChanged;86 protected virtual void OnFilenameChanged() {87 EventHandler handler = FilenameChanged;88 if (handler != null) handler(this, EventArgs.Empty);89 }90 73 public event EventHandler ItemImageChanged; 91 74 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs
r3822 r4419 33 33 [Item("ItemCollection", "Represents a collection of items.")] 34 34 public class ItemCollection<T> : ObservableCollection<T>, IItemCollection<T> where T : class, IItem { 35 private string filename;36 public string Filename {37 get { return filename; }38 set {39 if (value == null) throw new ArgumentNullException();40 if ((filename == null) || !filename.Equals(value)) {41 filename = value;42 OnFilenameChanged();43 }44 }45 }46 47 35 public virtual string ItemName { 48 36 get { return ItemAttribute.GetName(this.GetType()); } … … 82 70 } 83 71 84 public event EventHandler FilenameChanged;85 protected virtual void OnFilenameChanged() {86 EventHandler handler = FilenameChanged;87 if (handler != null) handler(this, EventArgs.Empty);88 }89 72 public event EventHandler ItemImageChanged; 90 73 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs
r4068 r4419 34 34 where TKey : class, IItem 35 35 where TValue : class, IItem { 36 private string filename;37 public string Filename {38 get { return filename; }39 set {40 if (value == null) throw new ArgumentNullException();41 if ((filename == null) || !filename.Equals(value)) {42 filename = value;43 OnFilenameChanged();44 }45 }46 }47 36 48 37 public virtual string ItemName { … … 84 73 } 85 74 86 public event EventHandler FilenameChanged;87 protected virtual void OnFilenameChanged() {88 EventHandler handler = FilenameChanged;89 if (handler != null) handler(this, EventArgs.Empty);90 }91 75 public event EventHandler ItemImageChanged; 92 76 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs
r4068 r4419 33 33 [Item("ItemList", "Represents a list of items.")] 34 34 public class ItemList<T> : ObservableList<T>, IItemList<T> where T : class, IItem { 35 private string filename;36 public string Filename {37 get { return filename; }38 set {39 if (value == null) throw new ArgumentNullException();40 if ((filename == null) || !filename.Equals(value)) {41 filename = value;42 OnFilenameChanged();43 }44 }45 }46 47 35 public virtual string ItemName { 48 36 get { return ItemAttribute.GetName(this.GetType()); } … … 82 70 } 83 71 84 public event EventHandler FilenameChanged;85 protected virtual void OnFilenameChanged() {86 EventHandler handler = FilenameChanged;87 if (handler != null) handler(this, EventArgs.Empty);88 }89 72 public event EventHandler ItemImageChanged; 90 73 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r4068 r4419 33 33 [Item("ItemSet", "Represents a set of items.")] 34 34 public class ItemSet<T> : ObservableSet<T>, IItemSet<T> where T : class, IItem { 35 private string filename;36 public string Filename {37 get { return filename; }38 set {39 if (value == null) throw new ArgumentNullException();40 if ((filename == null) || !filename.Equals(value)) {41 filename = value;42 OnFilenameChanged();43 }44 }45 }46 47 35 public virtual string ItemName { 48 36 get { return ItemAttribute.GetName(this.GetType()); } … … 81 69 } 82 70 83 public event EventHandler FilenameChanged;84 protected virtual void OnFilenameChanged() {85 EventHandler handler = FilenameChanged;86 if (handler != null) handler(this, EventArgs.Empty);87 }88 71 public event EventHandler ItemImageChanged; 89 72 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs
r4068 r4419 31 31 [StorableClass] 32 32 public abstract class KeyedItemCollection<TKey, TItem> : ObservableKeyedCollection<TKey, TItem>, IKeyedItemCollection<TKey, TItem> where TItem : class, IItem { 33 private string filename;34 public string Filename {35 get { return filename; }36 set {37 if (value == null) throw new ArgumentNullException();38 if ((filename == null) || !filename.Equals(value)) {39 filename = value;40 OnFilenameChanged();41 }42 }43 }44 45 33 public virtual string ItemName { 46 34 get { return ItemAttribute.GetName(this.GetType()); } … … 83 71 } 84 72 85 public event EventHandler FilenameChanged;86 protected virtual void OnFilenameChanged() {87 EventHandler handler = FilenameChanged;88 if (handler != null) handler(this, EventArgs.Empty);89 }90 73 public event EventHandler ItemImageChanged; 91 74 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/OperatorCollection.cs
r4068 r4419 25 25 namespace HeuristicLab.Core { 26 26 [StorableClass] 27 [Creatable("Algorithm Design")]28 27 [Item("Operator Collection", "Represents a collection of operators.")] 29 28 public class OperatorCollection : ItemCollection<IOperator> { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs
r4068 r4419 31 31 [Item("ReadOnlyItemArray", "Represents a read-only array of items.")] 32 32 public class ReadOnlyItemArray<T> : ReadOnlyObservableArray<T>, IItemArray<T> where T : class, IItem { 33 private string filename;34 public string Filename {35 get { return filename; }36 set {37 if (value == null) throw new ArgumentNullException();38 if ((filename == null) || !filename.Equals(value)) {39 filename = value;40 OnFilenameChanged();41 }42 }43 }44 45 33 public virtual string ItemName { 46 34 get { return ItemAttribute.GetName(this.GetType()); } … … 76 64 } 77 65 78 public event EventHandler FilenameChanged;79 protected virtual void OnFilenameChanged() {80 EventHandler handler = FilenameChanged;81 if (handler != null) handler(this, EventArgs.Empty);82 }83 66 public event EventHandler ItemImageChanged; 84 67 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs
r4068 r4419 31 31 [Item("ReadOnlyItemCollection", "Represents a read-only collection of items.")] 32 32 public class ReadOnlyItemCollection<T> : ReadOnlyObservableCollection<T>, IItemCollection<T> where T : class, IItem { 33 private string filename;34 public string Filename {35 get { return filename; }36 set {37 if (value == null) throw new ArgumentNullException();38 if ((filename == null) || !filename.Equals(value)) {39 filename = value;40 OnFilenameChanged();41 }42 }43 }44 45 33 public virtual string ItemName { 46 34 get { return ItemAttribute.GetName(this.GetType()); } … … 76 64 } 77 65 78 public event EventHandler FilenameChanged;79 protected virtual void OnFilenameChanged() {80 EventHandler handler = FilenameChanged;81 if (handler != null) handler(this, EventArgs.Empty);82 }83 66 public event EventHandler ItemImageChanged; 84 67 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r4068 r4419 33 33 where TKey : class, IItem 34 34 where TValue : class, IItem { 35 private string filename;36 public string Filename {37 get { return filename; }38 set {39 if (value == null) throw new ArgumentNullException();40 if ((filename == null) || !filename.Equals(value)) {41 filename = value;42 OnFilenameChanged();43 }44 }45 }46 35 47 36 public virtual string ItemName { … … 78 67 } 79 68 80 public event EventHandler FilenameChanged;81 protected virtual void OnFilenameChanged() {82 EventHandler handler = FilenameChanged;83 if (handler != null) handler(this, EventArgs.Empty);84 }85 69 public event EventHandler ItemImageChanged; 86 70 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs
r4068 r4419 31 31 [Item("ReadOnlyItemList", "Represents a read-only list of items.")] 32 32 public class ReadOnlyItemList<T> : ReadOnlyObservableList<T>, IItemList<T> where T : class, IItem { 33 private string filename;34 public string Filename {35 get { return filename; }36 set {37 if (value == null) throw new ArgumentNullException();38 if ((filename == null) || !filename.Equals(value)) {39 filename = value;40 OnFilenameChanged();41 }42 }43 }44 45 33 public virtual string ItemName { 46 34 get { return ItemAttribute.GetName(this.GetType()); } … … 76 64 } 77 65 78 public event EventHandler FilenameChanged;79 protected virtual void OnFilenameChanged() {80 EventHandler handler = FilenameChanged;81 if (handler != null) handler(this, EventArgs.Empty);82 }83 66 public event EventHandler ItemImageChanged; 84 67 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs
r4068 r4419 31 31 [Item("ReadOnlyItemSet", "Represents a read-only set of items.")] 32 32 public class ReadOnlyItemSet<T> : ReadOnlyObservableSet<T>, IItemSet<T> where T : class, IItem { 33 private string filename;34 public string Filename {35 get { return filename; }36 set {37 if (value == null) throw new ArgumentNullException();38 if ((filename == null) || !filename.Equals(value)) {39 filename = value;40 OnFilenameChanged();41 }42 }43 }44 45 33 public virtual string ItemName { 46 34 get { return ItemAttribute.GetName(this.GetType()); } … … 76 64 } 77 65 78 public event EventHandler FilenameChanged;79 protected virtual void OnFilenameChanged() {80 EventHandler handler = FilenameChanged;81 if (handler != null) handler(this, EventArgs.Empty);82 }83 66 public event EventHandler ItemImageChanged; 84 67 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs
r4068 r4419 31 31 [Item("ReadOnlyKeyedItemCollection", "Represents a read-only keyed collection of items.")] 32 32 public class ReadOnlyKeyedItemCollection<TKey, TItem> : ReadOnlyObservableKeyedCollection<TKey, TItem>, IKeyedItemCollection<TKey, TItem> where TItem : class, IItem { 33 private string filename;34 public string Filename {35 get { return filename; }36 set {37 if (value == null) throw new ArgumentNullException();38 if ((filename == null) || !filename.Equals(value)) {39 filename = value;40 OnFilenameChanged();41 }42 }43 }44 45 33 public virtual string ItemName { 46 34 get { return ItemAttribute.GetName(this.GetType()); } … … 76 64 } 77 65 78 public event EventHandler FilenameChanged;79 protected virtual void OnFilenameChanged() {80 EventHandler handler = FilenameChanged;81 if (handler != null) handler(this, EventArgs.Empty);82 }83 66 public event EventHandler ItemImageChanged; 84 67 protected virtual void OnItemImageChanged() {
Note: See TracChangeset
for help on using the changeset viewer.