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); }
public TreeWindow(TreeBrowser browser, string expression) { this.browser = browser; this.errors = expression; InitializeComponent(); }