public string CutEdge(int index) { Node child = Children[index]; MetroNetwork.InsertBreakBetween(ParentId, child); string rec = LineDiction.GetValue(child.LineIndex) + ": " + StationDiction.GetValue(ParentId) + " - " + StationDiction.GetValue(child.StationId); return(rec); }
// editing methods public List <string> GetNeighbourNames(int parentId) { Children.Clear(); this.ParentId = parentId; List <string> neighbours = new List <string>(); Children = MetroNetwork.GenChildrenFromStationId(this.ParentId); string val; foreach (var child in Children) { val = LineDiction.GetValue(child.LineIndex) + ": " + StationDiction.GetValue(child.StationId); neighbours.Add(val); } return(neighbours); }
private void E_MouseEnter(object sender, MouseEventArgs e) { DisplayLabel.Content = StationDiction.GetValue(this.StationId); }
public Station(int id) { this.Id = id; this.Name = StationDiction.GetValue(id); }