public async Task AddNextToMe(IWizardStepBaseViewModel step) { var index = Workflow.Steps.IndexOf(Step); if (index == Workflow.Steps.Count) { Workflow.Steps.Add(step); } else { if (Workflow.Steps.ElementAt(index + 1).GetType() == step.GetType()) { return; } Workflow.Steps.Insert(index + 1, step); } if (PersistantSettingsService.LoadedSettings != null) { await step.ReadSettings(PersistantSettingsService.LoadedSettings.Values); //if (step is AsyncErrorProviderBase errorProvider) //{ // errorProvider.ForceRefreshAsync(); //} } step.OnAdded(new DefaultStepConfigurator(step)); }
internal DefaultStepConfigurator(IWizardStepBaseViewModel step) { Workflow = IoC.Resolve <IUiWorkflow>(); Step = step; PersistantSettingsService = IoC.Resolve <PersistantSettingsService>(); }