private void CreateChild(string title, object childObject) { RemoteObjectDisplayGraphControl child = new RemoteObjectDisplayGraphControl { Text = title }; AddChild(child); child.DisplayObject(childObject); }
public void DisplayObjectGraph(IList list) { RemoteObjectDisplayGraphControl odgc = new RemoteObjectDisplayGraphControl { Text = "Query result: #" }; odgc.DisplayObject(list); odgc.Text = "Query returned " + list.Count + " results"; if (ux_ObjectGraph.Root != null) ux_ObjectGraph.Root.Delete(); ux_ObjectGraph.AddRoot(odgc); odgc.Expand(); }