Example #1
0
            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;
        }
Example #3
0
 public DeferHelper(PagedSource collectionView)
 {
     this.collectionView = collectionView;
 }