public void Dispose() { if (collectionView != null) { collectionView.EndDefer(); collectionView = null; } GC.SuppressFinalize(this); }
/// <summary> /// Creates the <see cref="PagedSourceCommands"/>. /// </summary> /// <param name="pagedSource">The paged source</param> public PagedSourceCommands(PagedSource pagedSource) { if (pagedSource == null) { throw new ArgumentNullException(nameof(pagedSource)); } this.pagedSource = pagedSource; this.pagedSource.PageChanged += OnPageChanged; this.pagedSource.CurrentChanged += OnCurrentChanged; }
public DeferHelper(PagedSource collectionView) { this.collectionView = collectionView; }