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); } } }
public void ListLessPurchase(List<Seat> Airplane320) { int removeSeat = 0; this.seatToRemove = Airplane320[removeSeat]; Airplane320.RemoveAt(removeSeat); }
public void PurchaseSeat(List<Seat> Airplane320) { int removeSeat = 1; this.seatToRemove = Airplane320[removeSeat]; Airplane320.RemoveAt(removeSeat); }