public Step2ViewModel(Step1ViewModel step1, Step3ViewModel step3) { ImportCommand = new RelayCommand(Import); _step1 = step1; _step3 = step3; AutoAssignQuestions = true; }
private GovernanceWizardViewModel(IProgress <WizardProgressEventArgs> progress, Action <bool> block) { var steps = new ObservableCollection <WizardViewModel.Step>(); var step1 = new Step1ViewModel(); var step3 = new Step3ViewModel(steps); var step2 = new Step2ViewModel(step1, step3); steps.Add(new WizardViewModel.Step("Introduction", step1)); steps.Add(new WizardViewModel.Step("Import Data", step2)); steps.Add(new WizardViewModel.Step("Assign Questions", step3)); // step3 assumes that it should add in all of its steps just before the last step. var summary = new SummaryStepViewModel(step3); steps.Add(new WizardViewModel.Step("Summary", summary)); Wizard = new WizardViewModel(steps, progress, block, Cancel); }
public SummaryStepViewModel(Step3ViewModel step3) { _step3 = step3; _step3.PropertyChanged += (sender, args) => RaisePropertyChanged(nameof(Indicators)); }