private void OnStrategyPropertyChanged(DiagramStrategy strategy) { if (strategy != null) { strategy.PropertyChanged += OnStrategyPropertyChanged; strategy.ProcessStateChanged += OnStrategyProcessStateChanged; var composition = strategy.Composition; Debugger = new DiagramDebugger(composition); Debugger.Break += OnDebuggerBreak; Debugger.CompositionChanged += OnDebuggerCompositionChanged; NoStrategyLabel.Visibility = Visibility.Hidden; DiagramEditor.Composition = composition; ShowElementProperties(null); } else { Debugger = null; NoStrategyLabel.Visibility = Visibility.Visible; DiagramEditor.Composition = new CompositionDiagramElement { Name = string.Empty }; } DiagramEditor.Composition.IsModifiable = false; }
private void OnCompositionChanged(CompositionDiagramElement composition) { composition.IsModifiable = false; if (Debugger != null) { _debuggerSettings = Debugger.Save(); } Debugger = new DiagramDebugger(composition); SafeLoadDebuggerSettings(); DiagramEditor.Composition = composition; }
private void CompositionPropertyChanged(CompositionDiagramElement newComposition) { if (newComposition != null) { _debugger = new DiagramDebugger(newComposition); _debugger.Break += OnDebuggerBreak; NoStrategyLabel.Visibility = Visibility.Hidden; DiagramEditor.Composition = newComposition; } else { _debugger = null; NoStrategyLabel.Visibility = Visibility.Visible; DiagramEditor.Composition = new CompositionDiagramElement { Name = string.Empty }; } DiagramEditor.Composition.IsModifiable = false; }
private void OnCompositionChanged(CompositionDiagramElement composition) { composition.IsModifiable = false; if (Debugger != null) _debuggerSettings = Debugger.Save(); Debugger = new DiagramDebugger(composition); SafeLoadDebuggerSettings(); DiagramEditor.Composition = composition; }