//------------------------------------------------------------------------- public bool hasChildNodeDef(int node_id) { EventDataXML.EventDef entity_def = getNodeDef(node_id); if (null == entity_def) { EbLog.Error("CNodeSys._isChildEntity(), null == entity_def, node_id=" + node_id); return(false); } bool has = false; bool ok = false; var group = entity_def.GetGroup("LinkedToChild"); if (group != null) { ok = true; Property p_entity_def_uid = group.GetValue("UID"); int this_child_entity_id = int.Parse(p_entity_def_uid.Value); if (this_child_entity_id != 0) { has = true; } } if (!ok) { var groups = entity_def.GetGroupArray("LinkedToChild"); if (groups != null) { foreach (int i in groups.Keys) { Property p_entity_def_uid = groups[i].GetValue("UID"); int this_child_entity_id = int.Parse(p_entity_def_uid.Value); if (this_child_entity_id != 0) { has = true; } } } } return(has); }