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