Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/10 02:27:02 (14 years ago)
Author:
swagner
Message:

Refactored HeuristicLab.Collections (#977)

File:
1 edited

Legend:

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

    r3370 r3390  
    2424using System.Collections.Generic;
    2525using System.ComponentModel;
    26 using HeuristicLab.Common;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2826
    2927namespace HeuristicLab.Collections {
    3028  [Serializable]
    31   [StorableClass]
    3229  public class ReadOnlyObservableCollection<T> : IObservableCollection<T> {
    33     [Storable]
    34     private IObservableCollection<T> collection;
     30    protected IObservableCollection<T> collection;
    3531
    3632    #region Properties
    37     public bool ReadOnlyView {
    38       get { return true; }
    39       set { }
    40     }
    41 
    4233    public int Count {
    4334      get { return collection.Count; }
     
    9384
    9485    #region Events
    95     [StorableHook(HookType.AfterDeserialization)]
    9686    protected void RegisterEvents() {
    9787      collection.ItemsAdded += new CollectionItemsChangedEventHandler<T>(collection_ItemsAdded);
     
    10191    }
    10292
    103     event EventHandler IContent.ReadOnlyViewChanged {
    104       add { }
    105       remove { }
    106     }
    10793
    10894    [field: NonSerialized]
Note: See TracChangeset for help on using the changeset viewer.