private static void ShowAllTrains(IReadOnlyList <Train> train) { Console.WriteLine("List of trains: "); for (var i = 0; i < train.Count; ++i) { ConsoleExtension.ClearExcess(5); Console.WriteLine($"\nTrain № {i+1}:"); Console.WriteLine($"Destination: {train[i].Destination}\nTrain number: {train[i].TrainNumber}\nDeparture time: {train[i].DepartureTime}"); } ConsoleExtension.WaitingAction(); }