public Days14Decorator(AbstractTravel travel) : base(travel.Name + " на 14 днів", travel)
 {
 }
 public TrainDecorator(AbstractTravel travel) : base(travel.Name + "; подорож на поїзді", travel)
 {
 }
예제 #3
0
 public Days21Decorator(AbstractTravel travel) : base(travel.Name + " на 21 днів", travel)
 {
 }
 public PlainDecorator(AbstractTravel travel) : base(travel.Name + "; подорож на літаку", travel)
 {
 }
예제 #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}");
 }
예제 #6
0
 public ExcurcionsDecorator(AbstractTravel travel) : base(travel.Name + " з додатковими екскурсіями", travel)
 {
 }
 public AbstractTravelDecorator(string str, AbstractTravel travel) : base(str)
 {
     this.protectedTravel = travel;
 }
예제 #8
0
 public CarDecorator(AbstractTravel travel) : base(travel.Name + "; подорож на машині", travel)
 {
 }