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/ReadOnlyObservableDictionary.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 ReadOnlyObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> {
    33     [Storable]
    34     private IObservableDictionary<TKey, TValue> dict;
     30    protected IObservableDictionary<TKey, TValue> dict;
    3531
    3632    #region Properties
    37     public bool ReadOnlyView {
    38       get { return true; }
    39       set { }
    40     }
    41 
    4233    public ICollection<TKey> Keys {
    4334      get { return dict.Keys; }
     
    120111
    121112    #region Events
    122     [StorableHook(HookType.AfterDeserialization)]
    123113    protected void RegisterEvents() {
    124114      dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded);
     
    127117      dict.CollectionReset += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_CollectionReset);
    128118      dict.PropertyChanged += new PropertyChangedEventHandler(dict_PropertyChanged);
    129     }
    130 
    131     event EventHandler IContent.ReadOnlyViewChanged {
    132       add { }
    133       remove { }
    134119    }
    135120
Note: See TracChangeset for help on using the changeset viewer.