static Boolean isEvan(Component c) { if (c.GetChilds() == null) { return(c.isEvan()); } Boolean isNodeEvan = c.isEvan(); foreach (Component child in c.GetChilds()) { isNodeEvan = isNodeEvan && isEvan(child); } return(isNodeEvan); }