Changeset 3483 for trunk/sources/HeuristicLab.Core/3.3/Collections
- Timestamp:
- 04/22/10 05:14:39 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3/Collections
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs
r3431 r3483 36 36 [Item("ItemArray<T>", "Represents an array of items.")] 37 37 public class ItemArray<T> : ObservableArray<T>, IItemArray<T> where T : class, IItem { 38 private string filename; 39 public string Filename { 40 get { return filename; } 41 set { 42 if (!filename.Equals(value)) { 43 filename = value; 44 OnFilenameChanged(); 45 } 46 } 47 } 48 38 49 public virtual string ItemName { 39 50 get { return ItemAttribute.GetName(this.GetType()); } … … 77 88 } 78 89 90 public event EventHandler FilenameChanged; 91 protected virtual void OnFilenameChanged() { 92 EventHandler handler = FilenameChanged; 93 if (handler != null) handler(this, EventArgs.Empty); 94 } 79 95 public event EventHandler ItemImageChanged; 80 96 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs
r3431 r3483 33 33 [Item("ItemCollection<T>", "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 (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 73 84 } 74 85 86 public event EventHandler FilenameChanged; 87 protected virtual void OnFilenameChanged() { 88 EventHandler handler = FilenameChanged; 89 if (handler != null) handler(this, EventArgs.Empty); 90 } 75 91 public event EventHandler ItemImageChanged; 76 92 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs
r3431 r3483 33 33 [Item("ItemDictionary<TKey, TValue>", "Represents a dictionary of items.")] 34 34 public class ItemDictionary<TKey, TValue> : ObservableDictionary<TKey, TValue>, IItemDictionary<TKey, TValue> where TKey : class, IItem where TValue : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs
r3431 r3483 36 36 [Item("ItemList<T>", "Represents a list of items.")] 37 37 public class ItemList<T> : ObservableList<T>, IItemList<T> where T : class, IItem { 38 private string filename; 39 public string Filename { 40 get { return filename; } 41 set { 42 if (!filename.Equals(value)) { 43 filename = value; 44 OnFilenameChanged(); 45 } 46 } 47 } 48 38 49 public virtual string ItemName { 39 50 get { return ItemAttribute.GetName(this.GetType()); } … … 76 87 } 77 88 89 public event EventHandler FilenameChanged; 90 protected virtual void OnFilenameChanged() { 91 EventHandler handler = FilenameChanged; 92 if (handler != null) handler(this, EventArgs.Empty); 93 } 78 94 public event EventHandler ItemImageChanged; 79 95 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r3431 r3483 36 36 [Item("ItemSet<T>", "Represents a set of items.")] 37 37 public class ItemSet<T> : ObservableSet<T>, IItemSet<T> where T : class, IItem { 38 private string filename; 39 public string Filename { 40 get { return filename; } 41 set { 42 if (!filename.Equals(value)) { 43 filename = value; 44 OnFilenameChanged(); 45 } 46 } 47 } 48 38 49 public virtual string ItemName { 39 50 get { return ItemAttribute.GetName(this.GetType()); } … … 75 86 } 76 87 88 public event EventHandler FilenameChanged; 89 protected virtual void OnFilenameChanged() { 90 EventHandler handler = FilenameChanged; 91 if (handler != null) handler(this, EventArgs.Empty); 92 } 77 93 public event EventHandler ItemImageChanged; 78 94 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs
r3431 r3483 32 32 [StorableClass] 33 33 public abstract class KeyedItemCollection<TKey, TItem> : ObservableKeyedCollection<TKey, TItem>, IKeyedItemCollection<TKey, TItem> where TItem : class, IItem { 34 private string filename; 35 public string Filename { 36 get { return filename; } 37 set { 38 if (!filename.Equals(value)) { 39 filename = value; 40 OnFilenameChanged(); 41 } 42 } 43 } 44 34 45 public virtual string ItemName { 35 46 get { return ItemAttribute.GetName(this.GetType()); } … … 75 86 } 76 87 88 public event EventHandler FilenameChanged; 89 protected virtual void OnFilenameChanged() { 90 EventHandler handler = FilenameChanged; 91 if (handler != null) handler(this, EventArgs.Empty); 92 } 77 93 public event EventHandler ItemImageChanged; 78 94 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs
r3431 r3483 33 33 [Item("ReadOnlyItemArray<T>", "Represents a read-only array of items.")] 34 34 public class ReadOnlyItemArray<T> : ReadOnlyObservableArray<T>, IItemArray<T> where T : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs
r3431 r3483 33 33 [Item("ReadOnlyItemCollection<T>", "Represents a read-only collection of items.")] 34 34 public class ReadOnlyItemCollection<T> : ReadOnlyObservableCollection<T>, IItemCollection<T> where T : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r3431 r3483 33 33 [Item("ReadOnlyItemDictionary<TKey, TValue>", "Represents a read-only dictionary of items.")] 34 34 public class ReadOnlyItemDictionary<TKey, TValue> : ReadOnlyObservableDictionary<TKey, TValue>, IItemDictionary<TKey, TValue> where TKey : class, IItem where TValue : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs
r3431 r3483 33 33 [Item("ReadOnlyItemList<T>", "Represents a read-only list of items.")] 34 34 public class ReadOnlyItemList<T> : ReadOnlyObservableList<T>, IItemList<T> where T : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs
r3431 r3483 33 33 [Item("ReadOnlyItemSet<T>", "Represents a read-only set of items.")] 34 34 public class ReadOnlyItemSet<T> : ReadOnlyObservableSet<T>, IItemSet<T> where T : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs
r3431 r3483 33 33 [Item("ReadOnlyKeyedItemCollection<TKey, TItem>", "Represents a read-only keyed collection of items.")] 34 34 public class ReadOnlyKeyedItemCollection<TKey, TItem> : ReadOnlyObservableKeyedCollection<TKey, TItem>, IKeyedItemCollection<TKey, TItem> where TItem : class, IItem { 35 private string filename; 36 public string Filename { 37 get { return filename; } 38 set { 39 if (!filename.Equals(value)) { 40 filename = value; 41 OnFilenameChanged(); 42 } 43 } 44 } 45 35 46 public virtual string ItemName { 36 47 get { return ItemAttribute.GetName(this.GetType()); } … … 74 85 } 75 86 87 public event EventHandler FilenameChanged; 88 protected virtual void OnFilenameChanged() { 89 EventHandler handler = FilenameChanged; 90 if (handler != null) handler(this, EventArgs.Empty); 91 } 76 92 public event EventHandler ItemImageChanged; 77 93 protected virtual void OnItemImageChanged() {
Note: See TracChangeset
for help on using the changeset viewer.