Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/10 19:26:24 (14 years ago)
Author:
swagner
Message:

Enabled saving only for some specific items (#1193)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs

    r4068 r4419  
    3131  [Item("ReadOnlyItemCollection", "Represents a read-only collection of items.")]
    3232  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 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    7664    }
    7765
    78     public event EventHandler FilenameChanged;
    79     protected virtual void OnFilenameChanged() {
    80       EventHandler handler = FilenameChanged;
    81       if (handler != null) handler(this, EventArgs.Empty);
    82     }
    8366    public event EventHandler ItemImageChanged;
    8467    protected virtual void OnItemImageChanged() {
Note: See TracChangeset for help on using the changeset viewer.