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); }
// 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); }