Example #1
0
        private void ExpandPath(PlanNode node, List <ulong> path)
        {
            if (!path.Contains(node.Link.UserID))
            {
                return;
            }

            // expand triggers even loading nodes two levels down, one level shown, the other hidden
            node.Expand();

            foreach (PlanNode sub in node.Nodes)
            {
                ExpandPath(sub, path);
            }
        }
Example #2
0
        private void VisiblePath(PlanNode node, List <ulong> path)
        {
            bool found = false;

            foreach (PlanNode sub in node.Nodes)
            {
                if (path.Contains(sub.Link.UserID))
                {
                    found = true;
                }
            }

            if (found)
            {
                node.Expand();

                foreach (PlanNode sub in node.Nodes)
                {
                    VisiblePath(sub, path);
                }
            }
        }
Example #3
0
        private void ExpandPath(PlanNode node, List<ulong> path)
        {
            if (!path.Contains(node.Link.UserID))
                return;

            // expand triggers even loading nodes two levels down, one level shown, the other hidden
            node.Expand();

            foreach (PlanNode sub in node.Nodes)
                ExpandPath(sub, path);
        }
Example #4
0
        private void VisiblePath(PlanNode node, List<ulong> path)
        {
            bool found = false;

            foreach (PlanNode sub in node.Nodes)
                if (path.Contains(sub.Link.UserID))
                    found = true;

            if (found)
            {
                node.Expand();

                foreach (PlanNode sub in node.Nodes)
                    VisiblePath(sub, path);
            }
        }