private void Rebuild() { ReplaceEverythingBy(_collection.Select(x => x.Value).Where(x => x.Enabled).OfType <T>()); }
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; }