public List <VisNode> GetWithoutCoords() { List <VisNode> nodes = new List <VisNode>(); Station.AllStations.ForEach(station => { nodes.Add(new VisNode() { id = station.ID, label = station.Name, color = VisNode.GetColor(station.Region), image = station.GetImage(), shape = "image", title = $"Processing messages count: {station.ProcessingMessages.Count}<br> {station.AchievedMessages.Count} messages achieved : {station.AchievedMessagesIDs}" }); }); return(nodes); }
public List <VisNodeWithCoords> GetWithCoords() { List <VisNodeWithCoords> nodes = new List <VisNodeWithCoords>(); Station.AllStations.ForEach(station => { nodes.Add(new VisNodeWithCoords() { id = station.ID, label = station.Name, color = VisNode.GetColor(station.Region), image = station.GetImage(), x = station.X, y = station.Y, shape = "image", title = $"Packets in queue count: {station.ReceivedPackets.Count}<br> {station.AchievedMessages.Count} messages achieved : {station.AchievedMessagesIDs}" }); }); return(nodes); }