コード例 #1
0
        public ConfigurationWizardViewModel(
            Project item,
            IRepositoryFactory <IProjectRepository> projectRepositoryFactory,
            IViewModelsFactory <IProjectLocationStepViewModel> projectLocationStepVmFactory,
            IViewModelsFactory <IDatabaseSettingsStepViewModel> databaseSettingsStepVmFactory,
            IViewModelsFactory <ISearchSettingsStepViewModel> searchSettingsStepVmFactory,
            IViewModelsFactory <IConfigurationViewModel> configurationVmFactory,
            IViewModelsFactory <IConfirmationStepViewModel> confirmationStepVmFactory,
            NavigationManager navigationManager
            )
        {
            _item = item;
            _projectRepositoryFactory = projectRepositoryFactory;
            _navigationManager        = navigationManager;

            // initializing step instances
            _confirmationViewModel = confirmationStepVmFactory.GetViewModelInstance();
            var confirmParam = new KeyValuePair <string, object>("confirmationViewModel", _confirmationViewModel);

            _searchSettingsStepViewModel = searchSettingsStepVmFactory.GetViewModelInstance(confirmParam);
            var searchParam = new KeyValuePair <string, object>("searchViewModel", _searchSettingsStepViewModel);

            _databaseSettingsStepViewModel = databaseSettingsStepVmFactory.GetViewModelInstance(confirmParam);
            var dbParam = new KeyValuePair <string, object>("databaseViewModel", _databaseSettingsStepViewModel);

            _projectLocationStepViewModel = projectLocationStepVmFactory.GetViewModelInstance(confirmParam, searchParam, dbParam);
            var locationParam = new KeyValuePair <string, object>("projectLocationViewModel", _projectLocationStepViewModel);

            _configurationViewModel = configurationVmFactory.GetViewModelInstance(locationParam, dbParam, searchParam);

            Initialize();
            RegisterWizardSteps();
        }
コード例 #2
0
		public ConfigurationWizardViewModel(
			Project item,
			IRepositoryFactory<IProjectRepository> projectRepositoryFactory,
			IViewModelsFactory<IProjectLocationStepViewModel> projectLocationStepVmFactory,
			IViewModelsFactory<IDatabaseSettingsStepViewModel> databaseSettingsStepVmFactory,
			IViewModelsFactory<ISearchSettingsStepViewModel> searchSettingsStepVmFactory,
			IViewModelsFactory<IConfigurationViewModel> configurationVmFactory,
			IViewModelsFactory<IConfirmationStepViewModel> confirmationStepVmFactory,
			NavigationManager navigationManager
			)
		{
			_item = item;
			_projectRepositoryFactory = projectRepositoryFactory;
			_navigationManager = navigationManager;

			// initializing step instances
			_confirmationViewModel = confirmationStepVmFactory.GetViewModelInstance();
			var confirmParam = new KeyValuePair<string, object>("confirmationViewModel", _confirmationViewModel);

			_searchSettingsStepViewModel = searchSettingsStepVmFactory.GetViewModelInstance(confirmParam);
			var searchParam = new KeyValuePair<string, object>("searchViewModel", _searchSettingsStepViewModel);

			_databaseSettingsStepViewModel = databaseSettingsStepVmFactory.GetViewModelInstance(confirmParam);
			var dbParam = new KeyValuePair<string, object>("databaseViewModel", _databaseSettingsStepViewModel);

			_projectLocationStepViewModel = projectLocationStepVmFactory.GetViewModelInstance(confirmParam, searchParam, dbParam);
			var locationParam = new KeyValuePair<string, object>("projectLocationViewModel", _projectLocationStepViewModel);

			_configurationViewModel = configurationVmFactory.GetViewModelInstance(locationParam, dbParam, searchParam);

			Initialize();
			RegisterWizardSteps();
		}
コード例 #3
0
		public DatabaseSettingsStepViewModel(IConfirmationStepViewModel confirmationViewModel)
		{
			_confirmationViewModel = confirmationViewModel;

			OnIsValidChanged();
			Initialize();
		}
コード例 #4
0
        public DatabaseSettingsStepViewModel(IConfirmationStepViewModel confirmationViewModel)
        {
            _confirmationViewModel = confirmationViewModel;

            OnIsValidChanged();
            Initialize();
        }
コード例 #5
0
        public ProjectLocationStepViewModel(IConfirmationStepViewModel confirmationViewModel, ISearchSettingsStepViewModel searchViewModel, IDatabaseSettingsStepViewModel databaseViewModel)
        {
            _confirmationViewModel = confirmationViewModel;
            _searchViewModel = searchViewModel;
            _databaseViewModel = databaseViewModel;

            Initialize();
        }
コード例 #6
0
        public ProjectLocationStepViewModel(IConfirmationStepViewModel confirmationViewModel, ISearchSettingsStepViewModel searchViewModel, IDatabaseSettingsStepViewModel databaseViewModel)
        {
            _confirmationViewModel = confirmationViewModel;
            _searchViewModel       = searchViewModel;
            _databaseViewModel     = databaseViewModel;

            Initialize();
        }
コード例 #7
0
        public SearchSettingsStepViewModel(IConfirmationStepViewModel confirmationViewModel)
        {
            _confirmationViewModel = confirmationViewModel;

            Initialize();
        }
        public SearchSettingsStepViewModel(IConfirmationStepViewModel confirmationViewModel)
        {
            _confirmationViewModel = confirmationViewModel;

            Initialize();
        }