Ejemplo n.º 1
0
            public void Dispose()
            {
                if (collectionView != null)
                {
                    collectionView.EndDefer();
                    collectionView = null;
                }

                GC.SuppressFinalize(this);
            }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public DeferHelper(PagedSource collectionView)
 {
     this.collectionView = collectionView;
 }