public void FlightMenu() { Flight CurFlight = null; FlightsManager Manager = FlightsManager.GetSource(); FlightsBase Flights = Manager.Flights; char mode = ' '; Console.Clear(); OutputFlightMenu(); do { mode = Program.EnterMode(); switch (mode) { case 'o': case 'O': OutputFlightMenu(); break; case 'p': case 'P': CurFlight = Flights.FindByPoints(); Program.WriteColorLine(" < Current flight was updated > \n", ConsoleColor.Green); break; case 'a': case 'A': Flights.OutputFlights(); break; case 'i': case 'I': FlightsBase.OutputCurrentFlight(CurFlight); break; case 'k': case 'K': CurFlight = Flights.FindByDate(FlightsTime.arrival); Program.WriteColorLine(" < Current flight was updated > \n", ConsoleColor.Green); break; case 'l': case 'L': CurFlight = Flights.FindByDate(FlightsTime.departure); Program.WriteColorLine(" < Current flight was updated > \n", ConsoleColor.Green); break; case 'b': case 'B': BookedFlights.BookFlight(CurFlight, this); break; case 'q': case 'Q': break; default: Program.WriteColorLine(" < Wrong mode > ", ConsoleColor.Red); break; } } while (mode != 'q' && mode != 'Q'); Console.Clear(); }