示例#1
0
            public void Dispose()
            {
                if (collectionView != null)
                {
                    collectionView.EndDefer();
                    collectionView = null;
                }

                GC.SuppressFinalize(this);
            }
示例#2
0
        /// <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;
        }
示例#3
0
 public DeferHelper(PagedSource collectionView)
 {
     this.collectionView = collectionView;
 }