コード例 #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;
 }