예제 #1
0
 private void Rebuild()
 {
     ReplaceEverythingBy(_collection.Select(x => x.Value).Where(x => x.Enabled).OfType <T>());
 }
예제 #2
0
 internal AcEnabledOnlyCollection(IAcWrapperObservableCollection collection) : base(collection.Select(x => x.Value).Where(x => x.Enabled).OfType <T>())
 {
     _collection = collection;
     collection.CollectionChanged   += Collection_CollectionChanged;
     collection.WrappedValueChanged += Collection_WrappedValueChanged;
 }