Exemplo n.º 1
0
        private void SelectNode(INode2 node)
        {
            if (FSelectedNodeView != null)
            {
                FSelectedNodeView.Selected = false;
            }

            var flatNodeViewTree = FNodeView.AsDepthFirstEnumerable((nv) => nv.Children);
            FSelectedNodeView = flatNodeViewTree.FirstOrDefault((nv) => nv.Node == node);

            if (FSelectedNodeView != null)
            {
                FSelectedNodeView.Selected = true;
            }
        }