public Days14Decorator(AbstractTravel travel) : base(travel.Name + " на 14 днів", travel)
 {
 }
 public TrainDecorator(AbstractTravel travel) : base(travel.Name + "; подорож на поїзді", travel)
 {
 }
Esempio n. 3
0
 public Days21Decorator(AbstractTravel travel) : base(travel.Name + " на 21 днів", travel)
 {
 }
 public PlainDecorator(AbstractTravel travel) : base(travel.Name + "; подорож на літаку", travel)
 {
 }
Esempio n. 5
0
 public string ShowInfo(AbstractTravel parcel)
 {
     return($"Type of travel: {parcel.Name}\nPrice of travel: {parcel.GetCost()} UAH\nDays:{txtDays.Text}\nVehicle: {txtTypeOfVehicle.Text}\n type: {txtTypeOfHotelRoom.Text}");
 }
Esempio n. 6
0
 public ExcurcionsDecorator(AbstractTravel travel) : base(travel.Name + " з додатковими екскурсіями", travel)
 {
 }
 public AbstractTravelDecorator(string str, AbstractTravel travel) : base(str)
 {
     this.protectedTravel = travel;
 }
Esempio n. 8
0
 public CarDecorator(AbstractTravel travel) : base(travel.Name + "; подорож на машині", travel)
 {
 }