public ProductsEntityChangesWinUIViewModel( IReactiveListViewModelFactory <ProductViewModel> reactiveListViewModelFactory, ITableDependencyStatusProvider statusProvider, IPlatformSchedulersFactory schedulersFactory, IODataServiceContextFactory dataServiceContextFactory, IDialogManager dialogManager) : base(reactiveListViewModelFactory, statusProvider, schedulersFactory, dataServiceContextFactory, dialogManager) { }
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)); }
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; }
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(); }