public INotifyCollection <T> AsNotifiable() { if (proxy == null) { proxy = this.WithUpdates(); } return(proxy); }
public KeyedWrapNotifyCollection(INotifyCollection <TInner> collection, IEqualityComparer <TKey> comparer, IAnkhServiceProvider context) : base(new WrapInnerCollection(collection, comparer)) { _context = context; _inner = (WrapInnerKeyedCollection)base.Items; _inner.Converter = this; OnPreInitialize(context); _inner.ResetCollection(); }
public WrapNotifyCollection(INotifyCollection <TInner> collection, object context) : base(new WrapInnerCollection(collection)) { _context = context; _inner = (WrapInnerCollection)this.Items; _inner.Converter = this; OnPreInitialize(context); _inner.ResetCollection(); }
public WrapInnerCollection(INotifyCollection <TInner> collection) { if (collection == null) { throw new ArgumentNullException("collection"); } _sourceCollection = collection; _sourceCollection.CollectionChanged += OnSourceCollectionChanged; _sourceCollection.PropertyChanged += OnSourcePropertyChanged; _sourceCollection.Disposed += OnSourceCollectionDisposed; }
public override INotifyCollection <TInner> GetWrappedCollection() { if (_roInner == null) { _roInner = _sourceCollection as ReadOnlyKeyedNotifyCollection <TKey, TInner>; if (_roInner == null) { KeyedNotifyCollection <TKey, TInner> rwInner = _sourceCollection as KeyedNotifyCollection <TKey, TInner>; if (rwInner != null) { _roInner = new ReadOnlyKeyedNotifyCollection <TKey, TInner>(rwInner); } else { _roInner = base.GetWrappedCollection(); } } } return(_roInner); }
public ObservableOfTypeCollection(INotifyCollection <TSource> source) : base(source) { }
public static INotifyCollection <T> WhereCollection <T>(INotifyCollection <T> source, ObservingFunc <T, bool> filter) { return(new ObservableWhere <T>(source, filter)); }
internal ReadOnlyObservableWrapper(INotifyCollection <T> collection) : base(collection) { }
public KeyedWrapNotifyCollection(INotifyCollection <TInner> collection, IEqualityComparer <TKey> comparer) : this(collection, comparer, (IAnkhServiceProvider)null) { }
protected WrapNotifyCollection(INotifyCollection <TInner> collection) : this(collection, null) { }
public ReadOnlyNotifyCollection(INotifyCollection <T> collection) : base(collection) { _innerCollection = (INotifyCollection <T>)base.Items; }