예제 #1
0
        public static void TestShowVisualizer(Image imageToVisualize, System.Windows.Forms.Form parent)
        {
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(imageToVisualize, typeof(ImageVisualizer));

            visualizerHost.ShowVisualizer();
            parent.Close();
        }
예제 #2
0
        static void ImageTest()
        {
            var bitmap = Image.FromFile(@"C:\Users\Benny\Desktop\保存图\new_douyin.png");
            VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(bitmap, typeof(ImageViewVisualizer));

            host.ShowVisualizer();
        }
예제 #3
0
        public static void ShowDynamicMethodVisualizer(object objectToVisualize)
        {
#if DynamicMethodVisualizer
            var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DynamicMethodVisualizer.MethodBodyVisualizer), typeof(DynamicMethodVisualizer.MethodBodyObjectSource));
            visualizerHost.ShowVisualizer();
#endif
        }
예제 #4
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost visualizerHost =
                new VisualizerDevelopmentHost(objectToVisualize, typeof(DataSetDebuggerSide));

            visualizerHost.ShowVisualizer();
        }
예제 #5
0
        static void Main()
        {
            var image1 = System.Drawing.Image.FromFile("tumblr_mwiiixNSpW1qbkusho1_1280.png");

            var visualizerHost = new VisualizerDevelopmentHost(image1, typeof(ImageVisualizer.Visualizer));

            visualizerHost.ShowVisualizer();
            var debuggeeObject = visualizerHost.DebuggeeObject;

            Debugger.Break();


            var image2 = new System.Windows.Media.Imaging.BitmapImage();

            image2.BeginInit();
            image2.UriSource = new Uri("tumblr_mwiiixNSpW1qbkusho1_1280.png", UriKind.Relative);
            image2.EndInit();

            visualizerHost = new VisualizerDevelopmentHost(image2, typeof(ImageVisualizer.Visualizer), typeof(ImageVisualizer.ImageVisualizerObjectSource));
            visualizerHost.ShowVisualizer();

            Debugger.Break();


            var image2small = new System.Windows.Media.Imaging.BitmapImage(); //new Uri("VisualStudio256_256.png", UriKind.Relative));

            image2small.BeginInit();
            image2small.StreamSource = new FileStream("VisualStudio256_256.png", FileMode.Open);
            image2small.EndInit();

            visualizerHost = new VisualizerDevelopmentHost(image2small, typeof(ImageVisualizer.Visualizer), typeof(ImageVisualizer.ImageVisualizerObjectSource));
            visualizerHost.ShowVisualizer();

            Debugger.Break();
        }
예제 #6
0
        static void Main(string[] args)
        {
            int aNumber        = 29;
            var visualizerHost = new VisualizerDevelopmentHost(aNumber, typeof(Visualizer), typeof(DebuggeeObjectSource));

            visualizerHost.ShowVisualizer();
        }
예제 #7
0
        static void Main(string[] args)
        {
            var rnd            = new Random();
            var visualizerHost = new VisualizerDevelopmentHost(rnd, typeof(Visualizer), typeof(RandomVisualizer.Debuggee.VisualizerObjectSource));

            visualizerHost.ShowVisualizer();
        }
예제 #8
0
        internal static void ShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize,
                                                                                     typeof(ILReader.DebuggerVisualizer.DebuggerSide), typeof(ILReader.DebuggerVisualizer.ILDumpObjectSource));

            visualizerHost.ShowVisualizer();
        }
        // Helper that simplifies testing of the visualizer by hosting it outside of the debugger.
        public static void TestShowVisualizer(object objectToVisualize)
        {
            var host = new VisualizerDevelopmentHost(objectToVisualize,
                                                     typeof(SyntaxDebuggerVisualizer), typeof(SyntaxSerializer));

            host.ShowVisualizer();
        }
예제 #10
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(VisualizerDialog),
                                                               typeof(VisualizerDataSource));

            visualizerHost.ShowVisualizer();
        }
예제 #11
0
        public static void TestString()
        {
            var tc  = new StackTrace().ToString();
            var lst = new List <object>();
            //for (int i = 0; i < 10; i++)
            //{
            //    lst.Add(new { text = i, value = new { message = tc } });
            //}

            var js = JsonConvert.SerializeObject(lst);

            js = "{a:{b:1},c:[1,0.5,\"12\"]}";
            Console.WriteLine(js.Length);
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(js, typeof(StringVisualizer.StringVisualizer));

            visualizerHost.ShowVisualizer();

            //using (StringForm form = new StringForm())
            //{
            //    form.SetString(js);
            //    form.ShowInTaskbar = false;

            //    form.ShowDialog();
            //}
        }
예제 #12
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost myHost = new VisualizerDevelopmentHost(
                objectToVisualize, typeof(Visualizer), typeof(ObjectSource));

            myHost.ShowVisualizer();
        }
예제 #13
0
        static void JsonTest()
        {
            string json = @"{""FileId"": ""1111111111111111111"",""Video"": {""Url"": ""123.mp3"",""Verify_Content"": ""cfhyQNKY+123=""},""Code"": 0,""Message"": """",""CodeDesc"": ""Success""}";
            VisualizerDevelopmentHost host2 = new VisualizerDevelopmentHost(json, typeof(JsonViewVisualizer));

            host2.ShowVisualizer();
        }
예제 #14
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize,
                                                                                     typeof(DTVisualizer));

            visualizerHost.ShowVisualizer();
        }
예제 #15
0
파일: Tester.cs 프로젝트: iBener/projets
 public static void TestShowVisualizer(object objectToVisualize)
 {
     VisualizerDevelopmentHost visualizerHost =
         new VisualizerDevelopmentHost(objectToVisualize,
             typeof(DictionaryDialogDebuggerVisualizer), typeof(DictionaryVisualizerObjectSource));
     visualizerHost.ShowVisualizer();
 }
예제 #16
0
        private static void ValidateVizualizerForm(Type vizType, ModelNode model)
        {
            var vizTypeConverter =
                Type.GetType(vizType.Assembly.GetCustomAttributes(typeof(DebuggerVisualizerAttribute), false)
                             .OfType <DebuggerVisualizerAttribute>()
                             .FirstOrDefault(a => a.VisualizerTypeName == vizType.AssemblyQualifiedName)
                             .VisualizerObjectSourceTypeName);

            var visualizerHost = new VisualizerDevelopmentHost(model,
                                                               vizType,
                                                               vizTypeConverter);

            var form = new Form();

            Timer r = new Timer();

            r.Tick += delegate
            {
                r.Stop();
                form.Close();
            };
            r.Interval = 1000;
            r.Start();

            visualizerHost.ShowVisualizer(form);

            r.Stop();
        }
 public static void TestShowVisualizer(object objectToVisualize)
 {
     var visualizerHost = new VisualizerDevelopmentHost(
         objectToVisualize,
         typeof(FunctionalTreeVisualizer),
         typeof(VisualizerObjectSource));
     visualizerHost.ShowVisualizer();
 }
예제 #18
0
 public static void TestShowVisualizer(object objectToVisualize)
 {
     VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, 
         typeof(DRVisualizer), 
         typeof(DataRowVisualizerObjectSource), 
         true);
     visualizerHost.ShowVisualizer();
 }
 public static void TestShowVisualizer(object objectToVisualize)
 {
     var visualizerHost = new VisualizerDevelopmentHost(
         objectToVisualize,
         typeof(LongExposureInfraredFrameDialogDebuggerVisualizer),
         typeof(LongExposureInfraredFrameVisualizerObjectSource));
     visualizerHost.ShowVisualizer();
 }
 /// <summary>
 /// for 測試用
 /// </summary>
 /// <param name="objectToVisualize"></param>
 public static void TestShowVisualizer(object objectToVisualize)
 {
     VisualizerDevelopmentHost host =
         new VisualizerDevelopmentHost(
             objectToVisualize, typeof(ListVisualizer),
             typeof(ListVisualizerObjectSource));
     host.ShowVisualizer();
 }
예제 #21
0
        /// <summary>
        /// Provides a way to test the debugger visualizer.
        /// </summary>
        /// <param name="objectToVisualize"></param>
        public static void TestVisualizer(object objectToVisualize)
        {
            // Obtain a visualizer development host with this class as the target visualizer
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DebuggerIntegration));

            // Run it
            visualizerHost.ShowVisualizer();
        }
 public static void TestShowVisualizer(object objectToVisualize)
 {
     var visualizerHost = new VisualizerDevelopmentHost(
         objectToVisualize,
         typeof(HighDefinitionFaceFrameDialogDebuggerVisualizer),
         typeof(HighDefinitionFaceFrameVisualizerObjectSource));
     visualizerHost.ShowVisualizer();
 }
예제 #23
0
 static void Main(string[] args)
 {
     var stateMachine = new StateMachine(null);
     stateMachine.Memory = new byte[] { 1, 2, 3, 4, 0, 0, 65, 36, 1, 1, 87, 5, 32, 9, 122, 0, 0, 7 };
     stateMachine.MemoryAddress = 17;
     var host = new VisualizerDevelopmentHost(stateMachine, typeof(StateMachineVisualiser), typeof(StateMachineObjectSource));
     host.ShowVisualizer();
 }
예제 #24
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            //var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(Visualizer20200112));
            //↑これだとGetDataが使用されないので↓
            var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(Visualizer20200112), typeof(MyObjectSource));

            visualizerHost.ShowVisualizer();
        }
예제 #25
0
        //kyoutuu
        public static void TestShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost host;

            //host = new VisualizerDevelopmentHost(objectToVisualize, typeof(Visualizer1));//これだとGetDataが無視される
            host = new VisualizerDevelopmentHost(objectToVisualize, typeof(Visualizer1), typeof(MyObjectSource)); //GetDataが使用される
            host.ShowVisualizer();                                                                                //Showへ続いて、また戻ってくる
        }
        /// <summary>
        /// Provides a way to test the debugger visualizer.
        /// </summary>
        /// <param name="objectToVisualize"></param>
        public static void TestVisualizer(object objectToVisualize)
        {
            // Obtain a visualizer development host with this class as the target visualizer
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DebuggerIntegration));

            // Run it
            visualizerHost.ShowVisualizer();
        }
        public void ShowVisualizerWithLinqQueryTest()
        {
            var query = from i in Enumerable.Range(1, 10)
                        select i;

            var myHost = new VisualizerDevelopmentHost(query, typeof(DynamicDebuggerVisualizerV12), typeof(DynamicDebuggerVisualizerObjectSourceV12));
            myHost.ShowVisualizer();
        }
예제 #28
0
        // TODO: ビジュアライザーをテストするために、次のコードをユーザーのコードに追加します:
        //
        //    MyDialog.TestShowVisualizer(new SomeType());
        //
        /// <summary>
        /// デバッガーの外部にホストすることにより、ビジュアライザーをテストします。
        /// </summary>
        /// <param name="objectToVisualize">ビジュアライザーに表示するオブジェクトです。</param>
        public static void TestShowVisualizer(object objectToVisualize)
        {
            //VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(MyDialog));
            VisualizerDevelopmentHost visualizerHost
                = new VisualizerDevelopmentHost(objectToVisualize, typeof(MyDialog), typeof(MySource));

            visualizerHost.ShowVisualizer();
        }
 public static void TestShowVisualizer(object objectToVisualize)
 {
     var visualizerHost = new VisualizerDevelopmentHost(
         objectToVisualize,
         typeof(FormCollectionVisualizer),
         typeof(FormCollectionObjectSource));
     visualizerHost.ShowVisualizer();
 }
예제 #30
0
        public static void TestFont()
        {
            var font = new Font("黑体", 36f);

            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(font, typeof(FontVisualizer.FontVisualizer));

            visualizerHost.ShowVisualizer();
        }
 public static void TestShowVisualizer(object objectToVisualize)
 {
     var visualizerHost = new VisualizerDevelopmentHost(
         objectToVisualize,
         typeof(ColorFrameImageDialogDebuggerVisualizer),
         typeof(ColorFrameVisualizerObjectSource));
     visualizerHost.ShowVisualizer();
 }
예제 #32
0
        // Thanks to the magic of TestDriven.Net, I need not make a full on unit test or test exe.
// ReSharper disable UnusedMember.Global
        public static void TestShowVisualizer()
// ReSharper restore UnusedMember.Global
        {
            const string codeText = @"public class Foo {void Target() { Console.WriteLine(7); } }";
            var target = AstMatchHelper.ParseToCompilationUnit(codeText);

            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(target, typeof (INodeVisualizer));
            visualizerHost.ShowVisualizer();
        }
예제 #33
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            var visualizerHost = new VisualizerDevelopmentHost(
                objectToVisualize,
                typeof(HighDefinitionFaceFrameImageDialogDebuggerVisualizer),
                typeof(HighDefinitionFaceFrameVisualizerObjectSource));

            visualizerHost.ShowVisualizer();
        }
예제 #34
0
        private static void TestUMatVisualizer()
        {
            UMat m = new UMat(640, 480, DepthType.Cv8U, 3);

            m.SetTo(new MCvScalar(255, 0, 0));
            VisualizerDevelopmentHost myHost = new VisualizerDevelopmentHost(m, typeof(UMatVisualizer));

            myHost.ShowVisualizer();
        }
예제 #35
0
    public static void TestShowVisualizer(object objectToVisualize)
    {
        var visualizerHost = new VisualizerDevelopmentHost(
            objectToVisualize,
            typeof(ControlVisualizer),
            typeof(ControlVisualizerObjectSource));

        visualizerHost.ShowVisualizer();
    }
예제 #36
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            var visualizerHost = new VisualizerDevelopmentHost(
                objectToVisualize,
                typeof(LongExposureInfraredFrameImageDialogDebuggerVisualizer),
                typeof(LongExposureInfraredFrameVisualizerObjectSource));

            visualizerHost.ShowVisualizer();
        }
예제 #37
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize,
                                                                                     typeof(DRVisualizer),
                                                                                     typeof(DataRowVisualizerObjectSource),
                                                                                     true);

            visualizerHost.ShowVisualizer();
        }
        // TODO: Add the following to your testing code to test the visualizer:
        //
        //    ImageVisualizer.TestShowVisualizer(new SomeType());
        //
        /// <summary>
        /// Tests the visualizer by hosting it outside of the debugger.
        /// </summary>
        /// <param name="objectToVisualize">The object to display in the visualizer.</param>
        public static void TestShowVisualizer(object objectToVisualize)
        {
            var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(ImageDebuggerVisualizer), typeof(ImageVisualizerObjectSource));
            var t = new Thread(() => visualizerHost.ShowVisualizer());

            t.SetApartmentState(ApartmentState.STA);
            t.Start();
            t.Join();
        }
예제 #39
0
        private void showVisualizerButton_Click(object sender, EventArgs e)
        {
            Expression<Func<int, bool>> expr = x => x == 10;

            VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(expr,
                                                 typeof(ExpressionTreeVisualizer),
                                                 typeof(ExpressionTreeVisualizerObjectSource));
            host.ShowVisualizer(this);
        }
예제 #40
0
        public static void TestShowVisualizer(object objectToVisualize)
        {
            var visualizerHost = new VisualizerDevelopmentHost(
                objectToVisualize,
                typeof(DepthFrameDialogDebuggerVisualizer),
                typeof(DepthFrameVisualizerObjectSource));

            visualizerHost.ShowVisualizer();
        }
        public void ShowVisualizerWithLinqQueryTest()
        {
            var query = from i in Enumerable.Range(1, 10)
                        select i;

            var myHost = new VisualizerDevelopmentHost(query, typeof(DynamicDebuggerVisualizerV12), typeof(DynamicDebuggerVisualizerObjectSourceV12));

            myHost.ShowVisualizer();
        }
예제 #42
0
 private static void DebugVisualizer()
 {
     using (MatND <float> mat = new MatND <float>(3, 5, 1))
     {
         mat.SetRandNormal(new MCvScalar(), new MCvScalar(255));
         VisualizerDevelopmentHost myHost =
             new VisualizerDevelopmentHost(mat, typeof(MatNDVisualizer));
         myHost.ShowVisualizer();
     }
 }
예제 #43
0
 private static void DebugVisualizer()
 {
    using (MatND<float> mat = new MatND<float>(3, 5, 1))
    {
       mat.SetRandNormal(new MCvScalar(), new MCvScalar(255));
       VisualizerDevelopmentHost myHost = 
          new VisualizerDevelopmentHost(mat, typeof(MatNDVisualizer));
       myHost.ShowVisualizer();
    }
 }
예제 #44
0
        private void showVisualizerButton_Click(object sender, EventArgs e)
        {
            Expression <Func <int, bool> > expr = x => x == 10;

            VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(expr,
                                                                           typeof(ExpressionTreeVisualizer),
                                                                           typeof(ExpressionTreeVisualizerObjectSource));

            host.ShowVisualizer(this);
        }
        /// <summary>
        /// Tests the show visualizer.
        /// </summary>
        /// <param name="objectToVisualize">The object to visualize.</param>
        public static void TestShowVisualizer(object objectToVisualize)
        {
            VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(
                objectToVisualize,
                typeof(ContainerVisualizer),
                typeof(WindsorContrainerObjectSource)
                );

            visualizerHost.ShowVisualizer();
        }
        public void ShowVisualizerWithLinqQueryAndCustomTypeTest()
        {
            var enumerable = new List<VisualizationTestClass>
            {
                new VisualizationTestClass{CustomType1 = new CustomType1{IntField2 = 1, SField1 = "Hello"}},
                new VisualizationTestClass{CustomType1 = new CustomType1{IntField2 = 2, SField1 = "World"}},
                new VisualizationTestClass{CustomType1 = new CustomType1{IntField2 = 3, SField1 = "!"}},
            };
            var myHost = new VisualizerDevelopmentHost(enumerable, typeof(DynamicDebuggerVisualizerV10), typeof(DynamicDebuggerVisualizerObjectSourceV10));

            myHost.ShowVisualizer();
        }
예제 #47
0
        private void btnDataTable_Click(object sender, RoutedEventArgs e)
        {
            DataTable dtTemp = CreateTempPlayerDataTable();

            // Hoster of any Visualizer
            VisualizerDevelopmentHost myProxyVisualizerHost =
                new VisualizerDevelopmentHost(dtTemp,
                                              typeof(DataTableDebuggerVisualizer),
                                              typeof(DataTableObjectSource));

            // Here you can Debug the visualizer by using Step Into (F11)
            myProxyVisualizerHost.ShowVisualizer();
        }
예제 #48
0
        //The Expression Tree Visualizer can be used in a debug environment to visualize expressions.  To use
        //the visualizer the dll generated by the ExpressionTreeVisualizer project must be copied to
        // \My Documents\Visual Studio 2008\Visualizers.  This console program provides the ability to
        //host the visualizer outside of Visual Studio without copying the DLL.
        static void Main()
        {
            string introduction = "The Visualizer may be hidden behind a window. Try the GuiHost.";

            Console.WriteLine(introduction);

            Expression<Func<int, bool>> expr = x => x == 10;

            VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(expr,
                                                 typeof(ExpressionTreeVisualizer),
                                                 typeof(ExpressionTreeVisualizerObjectSource));
            host.ShowVisualizer();
        }
예제 #49
0
파일: MainForm.cs 프로젝트: xeno-by/relinq
        private void showVisualizerButton_Click(object sender, EventArgs eventArgs)
        {
            var ctx = new TestClientDataContext();

            int x = 2;
            var some = from c in ctx.Companies
                       where c.Employees.Count == x * x
                       select new { c.Name };
            var expr = Simplifier.Simplify(some.Expression);

            var host = new VisualizerDevelopmentHost(
                expr,
                typeof(ExpressionTreeVisualizer),
                typeof(ExpressionTreeVisualizerObjectSource));
            host.ShowVisualizer(this);
        }
예제 #50
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var cfg = new Configuration();
            cfg.Properties[Environment.Dialect] = typeof(GenericDialect).FullName;
            cfg.Properties[Environment.ProxyFactoryFactoryClass] =
                "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle";
            cfg.AddAssembly(typeof(MyEntity).Assembly);
            cfg.CreateMappings(new GenericDialect());

            var visualizerHost = new VisualizerDevelopmentHost(
                cfg, typeof(CfgVisualizer));
            visualizerHost.ShowVisualizer();
        }
		public static void TestShow(object objToVisualize)
		{
			if (objToVisualize is Bitmap)
			{
				var visualizerHost = new VisualizerDevelopmentHost(
					objToVisualize,
					typeof(BitmapDebuggerVisualizer),
					typeof(BitmapDebuggerVisualizerObjectSource));
				visualizerHost.ShowVisualizer();
			}
			else if (objToVisualize is Pixmap)
			{
				var visualizerHost = new VisualizerDevelopmentHost(
					objToVisualize,
					typeof(BitmapDebuggerVisualizer),
					typeof(PixmapDebuggerVisualizerObjectSource));
				visualizerHost.ShowVisualizer();
			}
			else if (objToVisualize is Pixmap.Layer)
			{
				var visualizerHost = new VisualizerDevelopmentHost(
					objToVisualize,
					typeof(BitmapDebuggerVisualizer),
					typeof(PixmapLayerDebuggerVisualizerObjectSource));
				visualizerHost.ShowVisualizer();
			}
			else if (objToVisualize is Texture)
			{
				var visualizerHost = new VisualizerDevelopmentHost(
					objToVisualize,
					typeof(BitmapDebuggerVisualizer),
					typeof(PixmapAtlasDebuggerVisualizerObjectSource));
				visualizerHost.ShowVisualizer();
			}
			else
				throw new ArgumentException("Not supported.", "objToVisualize");

		}
		/// <summary>
		/// Test method
		/// </summary>
		/// <param name="objectToVisualize"></param>
		public static void TestShowVisualizer(object objectToVisualize)
		{
			VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DebuggerSideSqlGeography));
			visualizerHost.ShowVisualizer();
		}
 public static void TestShowVisualizer(object objectToVisualize)
 {
     var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(VisualizerDialog),
                                                  typeof(VisualizerDataSource));
       visualizerHost.ShowVisualizer();
 }
 public static void TestShowVisualizer(object objectToVisualize)
 {
     VisualizerDevelopmentHost myHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(ImageVisualizer));
     myHost.ShowVisualizer();
 }
예제 #55
0
		public static void Show(RoutingEngineGraphData data)
		{
			var visualizerHost = new VisualizerDevelopmentHost(data, typeof(RoutingEngineDebugVisualizer));
			visualizerHost.ShowVisualizer();
		}
 /// <summary>
 /// Tests the visualizer by hosting it outside of the debugger.
 /// </summary>
 /// <param name="objectToVisualize">The object to display in the visualizer.</param>
 public static void TestShowVisualizer(object objectToVisualize)
 {
     VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(ExtendedDataSetVisualizer));
     visualizerHost.ShowVisualizer();
 }
예제 #57
0
 /// <summary>Tests the visualizer (see remarks at the head of this class).</summary>
 public static void TestVisualizer(IBplCollection source) {
    var dbg = new VisualizerDevelopmentHost(source, typeof(BplDebuggerVisualizer), typeof(BplDebuggeeObjectSource));
    dbg.ShowVisualizer();
 }
예제 #58
0
 public static void TestShowVisualizer(object obj)
 {
     VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(obj, typeof(Visualizer));
      host.ShowVisualizer();
 }
예제 #59
0
 // TODO: Add the following to your testing code to test the visualizer:
 //
 //    LINQPadVisualizer.TestShowVisualizer(new SomeType());
 //
 /// <summary>
 /// Tests the visualizer by hosting it outside of the debugger.
 /// </summary>
 /// <param name="objectToVisualize">The object to display in the visualizer.</param>
 public static void TestShowVisualizer(object objectToVisualize)
 {
     VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(LINQPadVisualizer));
     visualizerHost.ShowVisualizer();
 }
 public static void TestShowVisualizer(FeatherVaneGraph data)
 {
     var visualizerHost = new VisualizerDevelopmentHost(data, typeof(VaneDebugVisualizer));
     visualizerHost.ShowVisualizer();
 }