private static void ExpandNodes(File file, ICollection <NetworkMapFile> nodes) { foreach (var node in file.Network.Nodes) { AddSource(nodes, node.SourceType, node.Host, node.Ip, node.SourceStart, node.SourceEnd, false, file.Path); } }
private static NetworkMapFile AddFileAsNode(File file, ICollection <NetworkMapFile> nodes, bool selected) { return(AddSource(nodes, file.SourceType, file.Host, file.Ip, file.Start, file.End, selected, file.Path)); }