public TemplateVisualizerWindow(TemplateVisualizer visualizer) { if (visualizer == null) throw new ArgumentNullException("visualizer"); InitializeComponent(); DataContext = new TemplateVisualizerViewModel(visualizer); }
public TemplateVisualizerWindow(TemplateVisualizer visualizer) { if (visualizer == null) { throw new ArgumentNullException("visualizer"); } InitializeComponent(); DataContext = new TemplateVisualizerViewModel(visualizer); }
public TemplateVisualizerViewModel(TemplateVisualizer visualizer) { if (visualizer == null) throw new ArgumentNullException("visualizer"); _visualizer = visualizer; _allEvents = visualizer.Interpreter.GetEvents(); List<InterpEvent> events = visualizer.RootTemplate.GetDebugState().Events; _templateCallHierarchy = new List<TemplateCallHierarchyViewModel>() { new TemplateCallHierarchyViewModel(visualizer.Interpreter, (EvalTemplateEvent)events[events.Count - 1]) }; }
public TemplateVisualizerViewModel(TemplateVisualizer visualizer) { if (visualizer == null) { throw new ArgumentNullException("visualizer"); } _visualizer = visualizer; _allEvents = visualizer.Interpreter.GetEvents(); _templateCallHierarchy = new List <TemplateCallHierarchyViewModel>() { new TemplateCallHierarchyViewModel(visualizer.Interpreter, visualizer.RootTemplate) }; }
public TemplateVisualizerViewModel(TemplateVisualizer visualizer) { if (visualizer == null) { throw new ArgumentNullException("visualizer"); } _visualizer = visualizer; _allEvents = visualizer.Interpreter.GetEvents(); List <InterpEvent> events = visualizer.RootTemplate.GetDebugState().Events; _templateCallHierarchy = new List <TemplateCallHierarchyViewModel>() { new TemplateCallHierarchyViewModel(visualizer.Interpreter, (EvalTemplateEvent)events[events.Count - 1]) }; }