Example #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="BindingList{T}" /> class as a wrapper
 ///     for the specified list.
 /// </summary>
 /// <param name="collection">The list that is wrapped by the new collection.</param>
 public BindingListWrapper(SynchronizedNotifiableCollection <T> collection = null)
     : base(collection ?? new SynchronizedNotifiableCollection <T>())
 {
     _locker            = new object();
     CollectionChanged += CollectionOnCollectionChanged;
 }
 public Enumerator(SynchronizedNotifiableCollection <T> collection)
 {
     _collection = collection;
     _index      = 0;
     _current    = default(T);
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="EventTracker" /> class.
 /// </summary>
 public EventTracker(SynchronizedNotifiableCollection <T> collection)
 {
     _collection = collection;
     _events     = new Dictionary <NotifyCollectionChangedAction, List <NotifyCollectionChangedEventArgs> >();
 }