public ProductsEntityChangesWinUIViewModel(
     IReactiveListViewModelFactory <ProductViewModel> reactiveListViewModelFactory,
     ITableDependencyStatusProvider statusProvider,
     IPlatformSchedulersFactory schedulersFactory,
     IODataServiceContextFactory dataServiceContextFactory,
     IDialogManager dialogManager)
     : base(reactiveListViewModelFactory, statusProvider, schedulersFactory, dataServiceContextFactory, dialogManager)
 {
 }
Example #2
0
 public ProductViewModel(
     Product product,
     IODataServiceContextFactory dataServiceContextFactory,
     IPlatformSchedulersFactory schedulersFactory,
     IDialogManager dialogManager)
     : base(product)
 {
     this.dataServiceContextFactory = dataServiceContextFactory ?? throw new ArgumentNullException(nameof(dataServiceContextFactory));
     this.schedulersFactory         = schedulersFactory ?? throw new ArgumentNullException(nameof(schedulersFactory));
     this.dialogManager             = dialogManager ?? throw new ArgumentNullException(nameof(dialogManager));
 }
Example #3
0
        public ProductsEntityChangesViewModel(
            IReactiveListViewModelFactory <ProductViewModel> reactiveListViewModelFactory,
            ITableDependencyStatusProvider statusProvider,
            IPlatformSchedulersFactory schedulersFactory,
            IODataServiceContextFactory dataServiceContextFactory,
            IDialogManager dialogManager)
            : base(reactiveListViewModelFactory, statusProvider, schedulersFactory.Dispatcher)
        {
            this.schedulersFactory         = schedulersFactory;
            this.dataServiceContextFactory = dataServiceContextFactory ?? throw new ArgumentNullException(nameof(dataServiceContextFactory));
            this.dialogManager             = dialogManager ?? throw new ArgumentNullException(nameof(dialogManager));

            PropertyChanged += ProductsEntityChangesViewModel_PropertyChanged;
        }
Example #4
0
        public ReactiveProductsViewModel(
            IReactiveData <Product> reactive,
            IODataServiceContextFactory dataServiceContextFactory,
            IViewModelsFactory viewModelsFactory,
            IPlatformSchedulersFactory schedulersFactory)
            : base(reactive, schedulersFactory)
        {
            this.dataServiceContextFactory = dataServiceContextFactory ?? throw new ArgumentNullException(nameof(dataServiceContextFactory));
            this.viewModelsFactory         = viewModelsFactory ?? throw new ArgumentNullException(nameof(viewModelsFactory));
            this.schedulersFactory         = schedulersFactory ?? throw new ArgumentNullException(nameof(schedulersFactory));

            Comparer = new DomainEntityComparer();
            Init();
        }