Example #1
0
    //-------------------------------------------------------------------------
    public bool hasParentNodeDef(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);
        }

        string str_parent_entity_id = entity_def.GetValue("Parent").Value;

        if (str_parent_entity_id != string.Empty && str_parent_entity_id != "0")
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }