private void FindByDestination() { Console.Write("Input key:"); String key = Console.ReadLine(); PrintFlot(Aeroflot.FindByDestination(_aeroflots, key)); }
public static void task4() { List <Aeroflot> aeroflots = new List <Aeroflot>() { new Aeroflot("C", 22, new[] { 1, 2, 3, 4, 5, 6, 7 }), new Aeroflot("D", 12, new[] { 1, 2, 3, 4, 5, 6, 7 }), new Aeroflot("A", 7, new[] { 1, 2, 3, 4, 5, 6, 7 }) }; Aeroflot.Write("/Users/andriypyzh/RiderProjects/Exam/ConsoleApp5/file.txt", aeroflots); Task4 task = new Task4(); task.show(); }
private void SortByNumber() { _aeroflots = Aeroflot.SortByNumber(_aeroflots); PrintFlot(_aeroflots); }
private void SortByDestination() { _aeroflots = Aeroflot.SortByDestination(_aeroflots); PrintFlot(_aeroflots); }