public ObjectViewer(MemoryGraph graph, RefGraph refGraph, List <NodeIndex> focusNodes = null) { InitializeComponent(); // Wire up our behavior into the generic TreeViewGrid. This defines the columns and how to get a child nodes. TreeViewGrid.SetController(new ObjectViewerTreeViewController(graph, refGraph, focusNodes)); }
public ObjectViewerTreeViewController(MemoryGraph graph, RefGraph refGraph, List <NodeIndex> focusNodes) { m_graph = graph; m_refGraph = refGraph; m_focusNodes = focusNodes; m_typeStorage = m_graph.AllocTypeNodeStorage(); m_nodeStorage = m_graph.AllocNodeStorage(); m_refNodeStorage = m_refGraph.AllocNodeStorage(); m_columnNames = new List <string>() { "Value", "Size", "Type" }; }