Esempio n. 1
0
        // Methods
        public override void GetData(object target, Stream outgoingData)
        {
            Expression expression             = (Expression)target;
            ExpressionTreeContainer container = new ExpressionTreeContainer(new ExpressionNode(expression), expression.ToString());

            Serialize(outgoingData, container);
        }
        public override void GetData(object target, Stream outgoingData)
        {
            Expression              expr      = (Expression)target;
            ExpressionTreeNode      browser   = new ExpressionTreeNode(expr);
            ExpressionTreeContainer container = new ExpressionTreeContainer(browser, expr.ToString());

            VisualizerObjectSource.Serialize(outgoingData, container);
        }
        public override void GetData(object target, Stream outgoingData)
        {
            Expression expr = (Expression)target;
            ExpressionTreeNode browser = new ExpressionTreeNode(expr);
            ExpressionTreeContainer container = new ExpressionTreeContainer(browser, expr.ToString());

            VisualizerObjectSource.Serialize(outgoingData, container);
        }
Esempio n. 4
0
        // Methods
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            ExpressionTreeContainer container = (ExpressionTreeContainer)objectProvider.GetObject();
            TreeView view = new TreeView();

            view.Nodes.Add(container.TreeNode);
            using (TreeWindow form = new TreeWindow())
            {
                form.ShowInTaskbar = false;
                form.Set(view, container.Expression);

                windowService.ShowDialog(form);
            }
        }
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            modalService = windowService;
            if (modalService == null)
            {
                throw new NotSupportedException("This debugger does not support modal visualizers");
            }

            ExpressionTreeContainer container = (ExpressionTreeContainer)objectProvider.GetObject();
            TreeBrowser             browser   = new TreeBrowser();

            browser.Add(container.Tree);
            TreeWindow treeForm = new TreeWindow(browser, container.Expression);

            modalService.ShowDialog(treeForm);
        }