protected override void Show(Microsoft.VisualStudio.DebuggerVisualizers.IDialogVisualizerService windowService, Microsoft.VisualStudio.DebuggerVisualizers.IVisualizerObjectProvider objectProvider) { string content = objectProvider.GetObject().ToString(); JsonView form = new JsonView(content); windowService.ShowDialog(form); }
protected override void Show(Microsoft.VisualStudio.DebuggerVisualizers.IDialogVisualizerService windowService, Microsoft.VisualStudio.DebuggerVisualizers.IVisualizerObjectProvider objectProvider) { Image image = (Image)objectProvider.GetObject(); ImageView imageViewer = new ImageView(); imageViewer.SetImage(image); windowService.ShowDialog(imageViewer); }
protected override void Show(Microsoft.VisualStudio.DebuggerVisualizers.IDialogVisualizerService windowService, Microsoft.VisualStudio.DebuggerVisualizers.IVisualizerObjectProvider objectProvider) { string content = objectProvider.GetObject().ToString(); if (!string.IsNullOrEmpty(content)) { var content2 = new Regex(@"\s{2,}|\r\n").Replace(content, ""); content2 = new Regex(@"\\").Replace(content2, ""); content2 = new Regex(@"""{").Replace(content2, "{"); content2 = new Regex(@"}""").Replace(content2, "}"); content = content2; } JsonView form = new JsonView(content); windowService.ShowDialog(form); }