public static void TestShowVisualizer(Image imageToVisualize, System.Windows.Forms.Form parent) { VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(imageToVisualize, typeof(ImageVisualizer)); visualizerHost.ShowVisualizer(); parent.Close(); }
static void ImageTest() { var bitmap = Image.FromFile(@"C:\Users\Benny\Desktop\保存图\new_douyin.png"); VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(bitmap, typeof(ImageViewVisualizer)); host.ShowVisualizer(); }
public static void ShowDynamicMethodVisualizer(object objectToVisualize) { #if DynamicMethodVisualizer var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DynamicMethodVisualizer.MethodBodyVisualizer), typeof(DynamicMethodVisualizer.MethodBodyObjectSource)); visualizerHost.ShowVisualizer(); #endif }
public static void TestShowVisualizer(object objectToVisualize) { VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DataSetDebuggerSide)); visualizerHost.ShowVisualizer(); }
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(); }
static void Main(string[] args) { int aNumber = 29; var visualizerHost = new VisualizerDevelopmentHost(aNumber, typeof(Visualizer), typeof(DebuggeeObjectSource)); visualizerHost.ShowVisualizer(); }
static void Main(string[] args) { var rnd = new Random(); var visualizerHost = new VisualizerDevelopmentHost(rnd, typeof(Visualizer), typeof(RandomVisualizer.Debuggee.VisualizerObjectSource)); visualizerHost.ShowVisualizer(); }
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(); }
public static void TestShowVisualizer(object objectToVisualize) { var visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(VisualizerDialog), typeof(VisualizerDataSource)); visualizerHost.ShowVisualizer(); }
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(); //} }
public static void TestShowVisualizer(object objectToVisualize) { VisualizerDevelopmentHost myHost = new VisualizerDevelopmentHost( objectToVisualize, typeof(Visualizer), typeof(ObjectSource)); myHost.ShowVisualizer(); }
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(); }
public static void TestShowVisualizer(object objectToVisualize) { VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DTVisualizer)); visualizerHost.ShowVisualizer(); }
public static void TestShowVisualizer(object objectToVisualize) { VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(DictionaryDialogDebuggerVisualizer), typeof(DictionaryVisualizerObjectSource)); visualizerHost.ShowVisualizer(); }
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(); }
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(); }
/// <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(); }
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(); }
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(); }
//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へ続いて、また戻ってくる }
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(); }
// 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(); }
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(); }
// 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(); }
public static void TestShowVisualizer(object objectToVisualize) { var visualizerHost = new VisualizerDevelopmentHost( objectToVisualize, typeof(HighDefinitionFaceFrameImageDialogDebuggerVisualizer), typeof(HighDefinitionFaceFrameVisualizerObjectSource)); visualizerHost.ShowVisualizer(); }
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(); }
public static void TestShowVisualizer(object objectToVisualize) { var visualizerHost = new VisualizerDevelopmentHost( objectToVisualize, typeof(ControlVisualizer), typeof(ControlVisualizerObjectSource)); visualizerHost.ShowVisualizer(); }
public static void TestShowVisualizer(object objectToVisualize) { var visualizerHost = new VisualizerDevelopmentHost( objectToVisualize, typeof(LongExposureInfraredFrameImageDialogDebuggerVisualizer), typeof(LongExposureInfraredFrameVisualizerObjectSource)); 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(); }
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); }
public static void TestShowVisualizer(object objectToVisualize) { var visualizerHost = new VisualizerDevelopmentHost( objectToVisualize, typeof(DepthFrameDialogDebuggerVisualizer), typeof(DepthFrameVisualizerObjectSource)); visualizerHost.ShowVisualizer(); }
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(); } }
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(); } }
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(); }
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(); }
//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(); }
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); }
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) { VisualizerDevelopmentHost myHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(ImageVisualizer)); myHost.ShowVisualizer(); }
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(); }
/// <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(); }
public static void TestShowVisualizer(object obj) { VisualizerDevelopmentHost host = new VisualizerDevelopmentHost(obj, typeof(Visualizer)); host.ShowVisualizer(); }
// 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(); }