예제 #1
0
    public void addActiveNode(NodeStatus ns)
    {
        NodeStatus tns;

        ns.selectNode();

        if (!currentActiveNodes.TryGetValue(ns.currIpInfo.ipAddress, out tns))
        {
            currentActiveNodes.Add(ns.currIpInfo.ipAddress, ns);
        }

        if (displayType == actionAreaDisplayType.SELECTED_TRAFFIC)
        {
            long        ipNum    = TestSQLiteConn.getIpNumFromString(ns.currIpInfo.ipAddress);
            List <long> extNodes = dbConnClass.getExteriorNFIpsForNode(ns.currIpInfo.ipAddress);
            addExteriorNodeReferences(ipNum, extNodes);

            updateList();

            updateActionAreaForSelectedTraffic();
        }
        else
        {
            updateList();
        }
    }