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 NavigationStepBase(IDataTransferModel transferModel) { TransferModel = transferModel; presenter = new Lazy<UserControl>(CreatePresenter, true); IsValid = true; IsAllowed = true; }
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; }
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); }
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); }
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)); }
public WelcomeStep(IDataTransferModel transferModel) : base(transferModel) { transferModel.Subscribe(m => m.HasImportStarted, OnImportStateChanged); }
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); }
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) { }