private void SubscribeToExtensionChanges(IGuidanceManager guidanceManager) { guidanceManager.InstantiatedExtensionsChanged += (s, e) => this.SetWorkflows(guidanceManager.InstantiatedGuidanceExtensions); this.SetWorkflows(guidanceManager.InstantiatedGuidanceExtensions); guidanceManager.ActiveExtensionChanged += (s, e) => { if (guidanceManager.ActiveGuidanceExtension == null) { this.CurrentWorkflow = null; } else { if (guidanceManager.ActiveGuidanceExtension.GuidanceWorkflow != null) { this.CurrentWorkflow = this.Workflows.FirstOrDefault(w => w.Model == guidanceManager.ActiveGuidanceExtension.GuidanceWorkflow); GuidanceConditionsEvaluator.EvaluateGraph(guidanceManager.ActiveGuidanceExtension); } } }; }
public void RefreshGraphStates() { GuidanceConditionsEvaluator.EvaluateGraph(this.Extension); }