Beispiel #1
0
        public FlightEditor(ItemsPrinter _itemsPrinter)
        {
            itemsPrinter = _itemsPrinter;

            passengerEditor  = new PassengerEditor(_itemsPrinter);
            ArrivalFlights   = new List <Flight>();
            DepartureFlights = new List <Flight>();
        }
Beispiel #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();
     }
 }
Beispiel #3
0
 public PassengerEditor(ItemsPrinter _itemsPrinter)
 {
     itemsPrinter = _itemsPrinter;
 }