Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 internal TreeViewGridNode(TreeViewGrid treeView, object data, TreeViewGridNode parent)
 {
     m_treeView   = treeView;
     Data         = data;
     m_isExpanded = !HasChildren;
     m_parent     = parent;
     if (parent != null)
     {
         m_depth = parent.m_depth + 1;
     }
 }