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/ReadOnlyItemDictionary.cs

    r4068 r4419  
    3333    where TKey : class, IItem
    3434    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     }
    4635
    4736    public virtual string ItemName {
     
    7867    }
    7968
    80     public event EventHandler FilenameChanged;
    81     protected virtual void OnFilenameChanged() {
    82       EventHandler handler = FilenameChanged;
    83       if (handler != null) handler(this, EventArgs.Empty);
    84     }
    8569    public event EventHandler ItemImageChanged;
    8670    protected virtual void OnItemImageChanged() {
Note: See TracChangeset for help on using the changeset viewer.