Exemplo n.º 1
0
        public FlightEditor(ItemsPrinter _itemsPrinter)
        {
            itemsPrinter = _itemsPrinter;

            passengerEditor  = new PassengerEditor(_itemsPrinter);
            ArrivalFlights   = new List <Flight>();
            DepartureFlights = new List <Flight>();
        }
Exemplo n.º 2
0
 //Initalize lists
 public FlightEditor(bool isRandomInitalization, ItemsPrinter _flightPrinter) : this(_flightPrinter) //True - Random data Initialization
 {
     if (isRandomInitalization)
     {
         Random rnd = new Random();
         for (int i = 0; i < deskTableLength; i++)
         {
             ArrivalFlights.Add(new Flight(rnd));
             DepartureFlights.Add(new Flight(rnd));
         }
         ArrivalFlights.Sort();
         DepartureFlights.Sort();
     }
 }
Exemplo n.º 3
0
 public PassengerEditor(ItemsPrinter _itemsPrinter)
 {
     itemsPrinter = _itemsPrinter;
 }