Exemplo n.º 1
0
 private static bool IsDescendent(ITreeNode parent, ITreeNode node)
 {
     if (Script.IsNullOrUndefined(node)) return false;
     if (parent.Contains(node)) return true;
     foreach (ITreeNode child in parent.Children)
     {
         if (IsDescendent(child, node)) return true;
     }
     return false;
 }