public void addNode(string HostName) { if (findNode(HostName) == null) { ComputerNodeModel newNode = new ComputerNodeModel(); newNode.FrameworkNodeName = "127.0.0.1"; newNode.NodeName = HostName; processNodes.Add(newNode); } }
public void addExternalNode(string HostName) { //add linq to check for node if (findNode(HostName) == null) { ComputerNodeModel newNode = new ComputerNodeModel(); newNode.FrameworkNodeName = HostName; newNode.NodeName = HostName; processNodes.Add(newNode); } }