Beispiel #1
0
        private void FindByDestination()
        {
            Console.Write("Input key:");

            String key = Console.ReadLine();

            PrintFlot(Aeroflot.FindByDestination(_aeroflots, key));
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        private void SortByNumber()
        {
            _aeroflots = Aeroflot.SortByNumber(_aeroflots);

            PrintFlot(_aeroflots);
        }
Beispiel #4
0
        private void SortByDestination()
        {
            _aeroflots = Aeroflot.SortByDestination(_aeroflots);

            PrintFlot(_aeroflots);
        }