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); } }
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); } } }
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); }
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); } }