コード例 #1
0
 public InfrastructureSetupStep(IDataTransferModel transferModel)
     : base(transferModel)
 {
     transferModel.InfrastructureConfiguration = infrastructureConfiguration = new InfrastructureConfiguration();
     transferModel.PropertyChanged            += OnTransferModelPropertyChanged;
     OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.HasImportStarted));
 }
 public InfrastructureSetupStep(IDataTransferModel transferModel)
     : base(transferModel)
 {
     transferModel.InfrastructureConfiguration = infrastructureConfiguration = new InfrastructureConfiguration();
     transferModel.PropertyChanged += OnTransferModelPropertyChanged;
     OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.HasImportStarted));
 }
        public MainWindowViewModel(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
        {
            Guard.NotNull("navigationService", navigationService);

            NavigationService = navigationService;
            NavigationActions = new NavigationActionsViewModel(applicationController, navigationService, transferModel);
        }
        public NavigationStepBase(IDataTransferModel transferModel)
        {
            TransferModel = transferModel;
            presenter     = new Lazy <UserControl>(CreatePresenter, true);

            IsValid   = true;
            IsAllowed = true;
        }
        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);
        }
        public NavigationStepBase(IDataTransferModel transferModel)
        {
            TransferModel = transferModel;
            presenter = new Lazy<UserControl>(CreatePresenter, true);

            IsValid = true;
            IsAllowed = true;
        }
コード例 #8
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 AdapterSetupStepBase(IDataTransferService transferService, IDataAdapterConfigurationProvidersCollection configurationProviders,
            IDataTransferModel transferModel)
                : base(transferModel)
        {
            TransferService = transferService;
            ConfigurationProviders = configurationProviders;

            transferModel.PropertyChanged += OnTransferModelPropertyChanged;
        }
コード例 #10
0
        public AdapterSetupStepBase(IDataTransferService transferService, IDataAdapterConfigurationProvidersCollection configurationProviders,
                                    IDataTransferModel transferModel)
            : base(transferModel)
        {
            TransferService        = transferService;
            ConfigurationProviders = configurationProviders;

            transferModel.PropertyChanged += OnTransferModelPropertyChanged;
        }
        public NavigationActionsViewModel(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
        {
            NavigateToPreviousStep = new NavigateToPreviousStepCommand(navigationService);
            NavigateToNextStep = new NavigateToNextStepCommand(navigationService);
            StartImport = new ActionCommand(navigationService);
            StartNewImport = new StartNewImportCommand(applicationController, navigationService, transferModel);
            CancelImport = new CancelImportCommand(transferModel);

            navigationService.Subscribe(s => s.CurrentStep, OnCurrentStepChanged);
        }
        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);
        }
コード例 #14
0
        public ImportStep(IDataTransferService transferService, IErrorDetailsProviderFactory errorDetailsProviderFactory,
                          ITransferStatisticsFactory statisticsFactory, IErrorHandler errorHandler, ITaskBarService taskBarService,
                          IDataTransferModel transferModel)
            : base(transferModel)
        {
            this.transferService             = transferService;
            this.errorDetailsProviderFactory = errorDetailsProviderFactory;
            this.statisticsFactory           = statisticsFactory;
            this.errorHandler   = errorHandler;
            this.taskBarService = taskBarService;

            transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
        }
コード例 #15
0
        public SummaryStep(IDataTransferService transferService, IDataAdapterConfigurationProvidersCollection configurationProviders,
                           ICommandLineProvider commandLineProvider, IDataTransferModel transferModel)
            : base(transferModel)
        {
            Guard.NotNull("transferService", transferService);
            Guard.NotNull("configurationProviders", configurationProviders);
            Guard.NotNull("transferModel", transferModel);

            this.transferService        = transferService;
            this.configurationProviders = configurationProviders;
            this.commandLineProvider    = commandLineProvider;

            transferModel.PropertyChanged += OnTransferModelPropertyChanged;
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(null));
        }
コード例 #16
0
        public SummaryStep(IDataTransferService transferService, IDataAdapterConfigurationProvidersCollection configurationProviders,
            ICommandLineProvider commandLineProvider, IDataTransferModel transferModel)
                : base(transferModel)
        {
            Guard.NotNull("transferService", transferService);
            Guard.NotNull("configurationProviders", configurationProviders);
            Guard.NotNull("transferModel", transferModel);

            this.transferService = transferService;
            this.configurationProviders = configurationProviders;
            this.commandLineProvider = commandLineProvider;

            transferModel.PropertyChanged += OnTransferModelPropertyChanged;
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(null));
        }
        public SummaryPageViewModel(IReadOnlyDictionary <string, string> sourcesDisplayNames, IReadOnlyDictionary <string, string> sinksDisplayNames,
                                    IDataAdapterConfigurationProvidersCollection configurationProviders, ICommandLineProvider commandLineProvider, IDataTransferModel transferModel)
        {
            this.sourcesDisplayNames = sourcesDisplayNames;
            this.sinksDisplayNames   = sinksDisplayNames;

            this.configurationProviders = configurationProviders;

            this.generateCommandLine = new GenerateCommandLineCommand(commandLineProvider);

            this.transferModel             = transferModel;
            transferModel.PropertyChanged += OnTransferModelPropertyChanged;
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.SourceAdapterName));
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.SinkAdapterName));
        }
        public SummaryPageViewModel(IReadOnlyDictionary<string, string> sourcesDisplayNames, IReadOnlyDictionary<string, string> sinksDisplayNames,
            IDataAdapterConfigurationProvidersCollection configurationProviders, ICommandLineProvider commandLineProvider, IDataTransferModel transferModel)
        {
            this.sourcesDisplayNames = sourcesDisplayNames;
            this.sinksDisplayNames = sinksDisplayNames;

            this.configurationProviders = configurationProviders;

            this.generateCommandLine = new GenerateCommandLineCommand(commandLineProvider);

            this.transferModel = transferModel;
            transferModel.PropertyChanged += OnTransferModelPropertyChanged;
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.InfrastructureConfiguration));
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.SourceAdapterName));
            OnTransferModelPropertyChanged(this, new PropertyChangedEventArgs(DataTransferModelProperties.SinkAdapterName));
        }
コード例 #19
0
 public WelcomeStep(IDataTransferModel transferModel)
     : base(transferModel)
 {
     transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
 }
        public MainWindowViewModel(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
        {
            Guard.NotNull("navigationService", navigationService);

            NavigationService = navigationService;
            NavigationActions = new NavigationActionsViewModel(applicationController, navigationService, transferModel);
        }
        public NavigationActionsViewModel(IApplicationController applicationController, INavigationService navigationService, IDataTransferModel transferModel)
        {
            NavigateToPreviousStep = new NavigateToPreviousStepCommand(navigationService);
            NavigateToNextStep     = new NavigateToNextStepCommand(navigationService);
            StartImport            = new ActionCommand(navigationService);
            StartNewImport         = new StartNewImportCommand(applicationController, navigationService, transferModel);
            CancelImport           = new CancelImportCommand(transferModel);

            navigationService.Subscribe(s => s.CurrentStep, OnCurrentStepChanged);
        }
コード例 #22
0
 public SinkSetupViewModel(IReadOnlyDictionary<string, IDataAdapterDefinition> adapters,
     Func<string, IDataAdapterConfigurationProvider> configurationProvidersSource, IDataTransferModel transferModel)
     : base(adapters, configurationProvidersSource, m => m.SinkAdapterName, transferModel) { }
        public CancelImportCommand(IDataTransferModel transferModel)
        {
            this.transferModel = transferModel;

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

            transferModel.Subscribe(m => m.ImportCancellation, OnCancellationChanged);
        }
コード例 #25
0
 public WelcomeStep(IDataTransferModel transferModel)
     : base(transferModel)
 {
     transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged);
 }
コード例 #26
0
 public SinkSetupStep(IDataTransferService transferService, IDataAdapterConfigurationProvidersCollection configurationProviders,
                      IDataTransferModel transferModel)
     : base(transferService, configurationProviders, transferModel)
 {
     Initialize();
 }
 public SourceSetupViewModel(IReadOnlyDictionary <string, IDataAdapterDefinition> adapters,
                             Func <string, IDataAdapterConfigurationProvider> configurationProvidersSource, IDataTransferModel transferModel)
     : base(adapters, configurationProvidersSource, m => m.SourceAdapterName, transferModel)
 {
 }