Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }