- Timestamp:
- 09/16/10 19:26:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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() {
Note: See TracChangeset
for help on using the changeset viewer.