private InteractiveWorkflowManager BuildWorkflowManager(IEnumerable <IWorkflowStep> workflowSteps = null) { var steps = workflowSteps ?? new List <IWorkflowStep>(); var workflowManager = new InteractiveWorkflowManager(_workflowNavigationHelper, _regionManager, steps); workflowManager.Job = _job; return(workflowManager); }
public PrintJobShell(IRegionManager regionManager, IInteractiveWorkflowManagerFactory interactiveWorkflowManagerFactory, PrintJobShellViewModel viewModel, IHightlightColorRegistration hightlightColorRegistration, ICurrentSettingsProvider currentSettingsProvider, ViewCustomization viewCustomization) { DataContext = viewModel; InitializeComponent(); InteractiveWorkflowManager = interactiveWorkflowManagerFactory.CreateInteractiveWorkflowManager(regionManager, currentSettingsProvider); Closing += (sender, args) => InteractiveWorkflowManager.Cancel = true; hightlightColorRegistration.RegisterHighlightColorResource(this); if (viewCustomization.CustomizationEnabled) { Title = viewCustomization.PrintJobWindowCaption; } }