/// <summary> /// Показ станция, с которыми соединенна текущаяя станция /// </summary> /// <param name="branch"></param> /// <param name="stationName"></param> static void ShowConnectedStations(IBranch branch, string stationName) { List <IStation> stations = branch.GetStationByName(stationName).GetConnectedStations(); foreach (IStation stat in stations) { Console.WriteLine(stat.GetStationName() + " " + stat.GetStationID(), "\n"); } }