示例#1
0
 public Ticket(Passanger Passanger, int Price, Van Van, Train Train, Seat Seat, string PlaceArrival)
 {
     this.passanger    = Passanger;
     this.price        = Price;
     this.van          = Van;
     this.train        = Train;
     this.seat         = Seat;
     this.placeArrival = PlaceArrival;
 }
示例#2
0
        public Van PickVan(List <Seat> SeatList, string Class, int Number)
        {
            Van pickedVan = VanList.FirstOrDefault(i => i.Class == Class && i.Number == Number);

            return(pickedVan);
        }
示例#3
0
        public Ticket GetTicket(Passanger passanger, Train PickedTrain, Van PickedVan, Seat PickedSeat, string PlaceArrival)
        {
            int price = 46;

            return(new Ticket(passanger, price, PickedVan, PickedTrain, PickedSeat, PlaceArrival));
        }