Ejemplo n.º 1
0
 private void SellSeats()
 {
     foreach (SeatButton button in SeatButtons)
     {
         if (button.IsSeatChecked)
         {
             button.IsSeatNotSold = false;
             _airline.SellSeatOnFlight(SelectedFlight, button.Column, button.Row, new Passenger(FirstName, LastName));
         }
     }
     IsSeatingChartShown = false;
     SeatsPurchased = SeatsSelected;
     DisplaySummary();
     List<Flight> flights = new List<Flight> ( _airline.ListOfFlights);
     XmlWriter<List<Flight>> xmlWriter = new XmlWriter<List<Flight>>(_logfile);
     xmlWriter.SerializeElement(flights);
     ClearSeatSelection();
 }