Пример #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;
 }