Beispiel #1
0
        public Plane(bool mstatus, int range)
        {
            this.maintenanceStatusGood = mstatus;
            this.MaxMilesPerTrip = range;

            Airplane320 = new List<Seat>();
            foreach (RowNumber row in Enum.GetValues(typeof(RowNumber)))
            {
                foreach (SeatNumber seat in Enum.GetValues(typeof(SeatNumber)))
                {
                    Seat anySeat = new Seat(row, seat);
                    Airplane320.Add(anySeat);
                }
            }
        }
Beispiel #2
0
 public void ListLessPurchase(List<Seat> Airplane320)
 {
     int removeSeat = 0;
     this.seatToRemove = Airplane320[removeSeat];
     Airplane320.RemoveAt(removeSeat);
 }
Beispiel #3
0
 public void PurchaseSeat(List<Seat> Airplane320)
 {
     int removeSeat = 1;
     this.seatToRemove = Airplane320[removeSeat];
     Airplane320.RemoveAt(removeSeat);
 }