protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { if (windowService != null) { var container = objectProvider.GetObject() as EtContainer; if (container != null) { var form = new ExpressionTreeVisualizerForm(); form.Init(container.Expression, container); DialogResult dialogResult = windowService.ShowDialog(form); } else { throw new ApplicationException("invalid objectProvider"); } } else { throw new ApplicationException("This debugger does not support modal visualizers"); } }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { if (windowService != null) { var container = objectProvider.GetObject() as EtContainer; if (container != null) { var form = new ExpressionTreeVisualizerForm(); form.Init(container.Expression, container); DialogResult dialogResult = windowService.ShowDialog(form); } else { throw new ApplicationException("invalid objectProvider"); } } else { throw new ApplicationException("This debugger does not support modal visualizers"); } }