public StartNewImportCommand(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
            : base(navigationService)
        {
            this.transferModel         = transferModel;
            this.applicationController = applicationController;

            transferModel.Subscribe(m => m.ImportCancellation, OnCancellationChanged);
        }
        public StartNewImportCommand(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
            : base(navigationService)
        {
            this.transferModel = transferModel;
            this.applicationController = applicationController;

            transferModel.Subscribe(m => m.ImportCancellation, OnCancellationChanged);
        }
コード例 #3
0
        public ImportStep(IDataTransferService transferService, ITransferStatisticsFactory statisticsFactory, IErrorHandler errorHandler, IDataTransferModel transferModel)
            : base(transferModel)
        {
            this.transferService   = transferService;
            this.statisticsFactory = statisticsFactory;
            this.errorHandler      = errorHandler;

            transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
        }
コード例 #4
0
        public ImportStep(IDataTransferService transferService, ITransferStatisticsFactory statisticsFactory, IErrorHandler errorHandler, IDataTransferModel transferModel)
            : base(transferModel)
        {
            this.transferService = transferService;
            this.statisticsFactory = statisticsFactory;
            this.errorHandler = errorHandler;

            transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
        }
        public AdapterSetupViewModelBase(IReadOnlyDictionary <string, IDataAdapterDefinition> adapters,
                                         Func <string, IDataAdapterConfigurationProvider> configurationProvidersSource,
                                         Expression <Func <IDataTransferModel, string> > adapterIdProperty, IDataTransferModel transferModel)
        {
            Adapters = adapters;
            this.configurationProvidersSource = configurationProvidersSource;
            TransferModel = transferModel;

            transferModel.Subscribe(adapterIdProperty, UpdateCurrentProvider);
        }
        public AdapterSetupViewModelBase(IReadOnlyDictionary<string, IDataAdapterDefinition> adapters,
            Func<string, IDataAdapterConfigurationProvider> configurationProvidersSource,
            Expression<Func<IDataTransferModel, string>> adapterIdProperty, IDataTransferModel transferModel)
        {
            Adapters = adapters;
            this.configurationProvidersSource = configurationProvidersSource;
            TransferModel = transferModel;

            transferModel.Subscribe(adapterIdProperty, UpdateCurrentProvider);
        }
        public CancelImportCommand(IDataTransferModel transferModel)
        {
            this.transferModel = transferModel;

            transferModel.Subscribe(m => m.ImportCancellation, OnCancellationChanged);
        }
コード例 #8
0
        public CancelImportCommand(IDataTransferModel transferModel)
        {
            this.transferModel = transferModel;

            transferModel.Subscribe(m => m.ImportCancellation, OnCancellationChanged);
        }
コード例 #9
0
 public WelcomeStep(IDataTransferModel transferModel)
     : base(transferModel)
 {
     transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
 }
コード例 #10
0
 public WelcomeStep(IDataTransferModel transferModel)
     : base(transferModel)
 {
     transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
 }