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

    r3370 r3390  
    2424using System.Collections.Generic;
    2525using System.ComponentModel;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.Common;
    2826
    2927namespace HeuristicLab.Collections {
    3028  [Serializable]
    31   [StorableClass]
    3229  public class ReadOnlyObservableArray<T> : IObservableArray<T> {
    33     [Storable]
    34     private IObservableArray<T> array;
     30    protected IObservableArray<T> array;
    3531
    3632    #region Properties
    37     public bool ReadOnlyView {
    38       get { return true; }
    39       set { }
    40     }
    41 
    4233    public int Length {
    4334      get { return array.Length; }
     
    115106
    116107    #region Events
    117     [StorableHook(HookType.AfterDeserialization)]
    118108    protected void RegisterEvents() {
    119109      array.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_ItemsReplaced);
     
    121111      array.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_CollectionReset);
    122112      array.PropertyChanged += new PropertyChangedEventHandler(array_PropertyChanged);
    123     }
    124 
    125     event EventHandler IContent.ReadOnlyViewChanged {
    126       add { }
    127       remove { }
    128113    }
    129114
Note: See TracChangeset for help on using the changeset viewer.