Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/10 03:00:00 (14 years ago)
Author:
swagner
Message:

Removed property ReadOnlyView (#969)

File:
1 edited

Legend:

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

    r3385 r3431  
    4242    }
    4343
    44     [Storable]
    45     private bool readOnlyView;
    46     public virtual bool ReadOnlyView {
    47       get { return readOnlyView; }
    48       set {
    49         if (readOnlyView != value) {
    50           readOnlyView = value;
    51           OnReadOnlyViewChanged();
    52         }
    53       }
    54     }
    55 
    56     protected Item()
    57       : base() {
    58       readOnlyView = false;
    59     }
     44    protected Item() : base() { }
    6045    [StorableConstructor]
    6146    protected Item(bool deserializing) { }
    62 
    63     /// <summary>
    64     /// Clones the current instance (deep clone).
    65     /// </summary>
    66     /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param>
    67     /// <returns>The cloned object as <see cref="Variable"/>.</returns>
    68     public override IDeepCloneable Clone(Cloner cloner) {
    69       Item clone = (Item)base.Clone(cloner);
    70       clone.readOnlyView = readOnlyView;
    71       return clone;
    72     }
    7347
    7448    /// <summary>
     
    8559      if (handler != null) handler(this, EventArgs.Empty);
    8660    }
    87     public event EventHandler ReadOnlyViewChanged;
    88     protected virtual void OnReadOnlyViewChanged() {
    89       EventHandler handler = ReadOnlyViewChanged;
    90       if (handler != null) handler(this, EventArgs.Empty);
    91     }
    9261    public event EventHandler ToStringChanged;
    9362    protected virtual void OnToStringChanged() {
Note: See TracChangeset for help on using the changeset viewer.