Esempio n. 1
0
        protected DataVirtualizingCollectionViewModelBaseBase(
            // parameters
            IBackendAccessAdapter <TViewModel> backendAccessAdapter,

            // dependencies
            IGeneralOptionsViewModel generalOptionsViewModel,
            IPageLoadingBehaviorViewModel pageLoadingBehaviorViewModel,
            IPageRemovalBehaviorViewModel pageRemovalBehaviorViewModel,
            IFetcherKindViewModelInternal fetcherKindViewModel,
            IGeneralFunctionsViewModel generalFunctionsViewModel,
            IGetSchedulers getSchedulers)
        {
            _backendAccessAdapter        = backendAccessAdapter;
            _getSchedulers               = getSchedulers;
            GeneralOptionsViewModel      = generalOptionsViewModel;
            PageLoadingBehaviorViewModel = pageLoadingBehaviorViewModel;
            PageRemovalBehaviorViewModel = pageRemovalBehaviorViewModel;
            FetcherKindViewModel         = fetcherKindViewModel;
            GeneralFunctionsViewModel    = generalFunctionsViewModel;
            IndexAccessBehaviorViewModel = fetcherKindViewModel.IndexAccessBehaviorViewModel;

            _serialItems = new SerialDisposable();
            _compositeDisposable.Add(_serialItems);

            var createNew = new RxRelayCommand(SetItems);

            CreateNew = createNew;
            _compositeDisposable.Add(createNew);
        }
Esempio n. 2
0
        public SlidingWindowViewModel(
            // parameters
            IBackendAccessAdapter <TViewModel> backendAccessAdapter,

            // dependencies
            IGeneralOptionsViewModel generalOptionsViewModel,
            ISlidingWindowOptionsViewModel slidingWindowOptionsViewModel,
            IPageLoadingBehaviorViewModel pageLoadingBehaviorViewModel,
            IPageRemovalBehaviorViewModel pageRemovalBehaviorViewModel,
            IFetcherKindViewModelInternal fetcherKindViewModel,
            IGeneralFunctionsViewModel generalFunctionsViewModel,
            ISlidingWindowFunctionsViewModel slidingWindowFunctionsViewModel,
            IGetSchedulers getSchedulers)
            : base(
                backendAccessAdapter,
                generalOptionsViewModel,
                pageLoadingBehaviorViewModel,
                pageRemovalBehaviorViewModel,
                fetcherKindViewModel,
                generalFunctionsViewModel,
                getSchedulers)
        {
            _slidingWindowOptionsViewModel = slidingWindowOptionsViewModel;
            SpecificFunctionsViewModel     = slidingWindowFunctionsViewModel;
        }
Esempio n. 3
0
 public DataVirtualizingCollectionViewModelFactory(
     IGeneralOptionsViewModel generalOptionsViewModel,
     ISlidingWindowOptionsViewModel slidingWindowOptionsViewModel,
     IPageLoadingBehaviorViewModel pageLoadingBehaviorViewModel,
     IPageRemovalBehaviorViewModel pageRemovalBehaviorViewModel,
     IFetcherKindViewModelInternal fetcherKindViewModel,
     IGeneralFunctionsViewModel generalFunctionsViewModel,
     ISlidingWindowFunctionsViewModel slidingWindowFunctionsViewModel,
     IGetSchedulers getSchedulers,
     CompositeDisposable compositeDisposableOfLifetimeScope)
 {
     _generalOptionsViewModel         = generalOptionsViewModel;
     _slidingWindowOptionsViewModel   = slidingWindowOptionsViewModel;
     _pageLoadingBehaviorViewModel    = pageLoadingBehaviorViewModel;
     _pageRemovalBehaviorViewModel    = pageRemovalBehaviorViewModel;
     _fetcherKindViewModel            = fetcherKindViewModel;
     _generalFunctionsViewModel       = generalFunctionsViewModel;
     _slidingWindowFunctionsViewModel = slidingWindowFunctionsViewModel;
     _getSchedulers = getSchedulers;
     _compositeDisposableOfLifetimeScope = compositeDisposableOfLifetimeScope;
 }
Esempio n. 4
0
        public DataVirtualizingCollectionViewModel(
            // parameters
            IBackendAccessAdapter <TViewModel> backendAccessAdapter,

            // dependencies
            IGeneralOptionsViewModel generalOptionsViewModel,
            IPageLoadingBehaviorViewModel pageLoadingBehaviorViewModel,
            IPageRemovalBehaviorViewModel pageRemovalBehaviorViewModel,
            IFetcherKindViewModelInternal fetcherKindViewModel,
            IGeneralFunctionsViewModel generalFunctionsViewModel,
            IGetSchedulers getSchedulers)
            : base(
                backendAccessAdapter,
                generalOptionsViewModel,
                pageLoadingBehaviorViewModel,
                pageRemovalBehaviorViewModel,
                fetcherKindViewModel,
                generalFunctionsViewModel,
                getSchedulers)
        {
        }