- Timestamp:
- 04/22/10 05:14:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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() {
Note: See TracChangeset
for help on using the changeset viewer.