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])
                };
        }
예제 #4
0
        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)
            };
        }
예제 #5
0
        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])
            };
        }