Ejemplo n.º 1
0
 public Flight(Aircraft aircraft, Schedule schedule, int flightNumber, decimal priceMultiplier)
 {
     Manifest = new List<Passenger>();
     this.Schedule = schedule;
     this.FlightNumber = flightNumber;
     this.Aircraft = aircraft;
     this.PriceMultiplier = priceMultiplier;
     this.ListOfSeatsRows = PopulateSeatList();
 }
Ejemplo n.º 2
0
 public Flight()
 {
     Schedule = new Schedule();
     StartTime = new DateTime();
     EndTime = new DateTime();
     Manifest = new List<Passenger>();
     Aircraft = new Aircraft();
     ListOfSeatsRows = new List<SeatRow>();
 }
Ejemplo n.º 3
0
 public void AddToSchedule(Schedule scheduleToAdd)
 {
     ScheduleList.Add(scheduleToAdd);
 }
Ejemplo n.º 4
0
        public void CreateFlight(Aircraft aircraft, Schedule schedule, int flightNumber)
        {
            int distance = LocationHelper.FindDistanceBetweenLocations(schedule.Origin, schedule.Destination);
            ListOfFlights.Add(new Flight(aircraft, schedule, flightNumber, .4m*distance));

        }