public DiscountedItem(IRentable rentable, double percentage) : base(rentable) { this.discountPercentage = percentage; }
public DiscountedItem(IRentable rentable, double discount) : base(rentable) { this.discountPercentage = discount; }
public DiscountedItem(IRentable rentable, double value) : base(rentable) { this.Discount_percentage = value; }
public RentOptionScreen(IRentable item) : this() { this.Item = item; this.PricePerDayTextBlock.Text += string.Format("{0:C}", this.Item.PricePerDay); }
private int GetWaterCharges(IRentable rentable) { var waterChargesCalculatingVisitor = new WaterChargesCalculatingVisitor(); return(rentable.Visit(waterChargesCalculatingVisitor)); }
public DiscountedItem(IRentable rentable) : base(rentable) { }
public Kcp(uint conv_, IKcpCallback callback, IRentable rentable = null) : base(conv_, callback, rentable) { SegmentManager = Default; }
public RentableDecorator(IRentable rentable) { this.rentable = rentable; }
/// <summary> /// create a new kcp control object, 'conv' must equal in two endpoint /// from the same connection. /// </summary> /// <param name="conv_"></param> /// <param name="rentable">可租用内存的回调</param> public KcpV2(uint conv_, IRentable rentable = null) : base(conv_) { this.rentable = rentable; }
/// <summary> /// create a new kcp control object, 'conv' must equal in two endpoint /// from the same connection. /// </summary> /// <param name="conv_"></param> /// <param name="callback"></param> /// <param name="rentable">可租用内存的回调</param> public Kcp(uint conv_, IKcpCallback callback, IRentable rentable = null) : base(conv_) { callbackHandle = callback; this.rentable = rentable; }
public static void AddRentableItem(IRentable item) { RentedItems.Add(item); }
private int GetCleaningCharges(IRentable rentable) { var cleaningChargesCalculatingVisitor = new CleanChargesCalculatingVisitor(); return(rentable.Visit(cleaningChargesCalculatingVisitor)); }
private int GetElectricityCharges(IRentable rentable) { var electricityChargesCalculatingVisitor = new ElectricityChargesCalculatingVisitor(); return(rentable.Visit(electricityChargesCalculatingVisitor)); }
public static void AddRent(IRentable item) { Rent.rents.Add(item); }
public HotItem(IRentable rentable) : base(rentable) { }
public void Rent(IRentable item) { this.RentedItems.Add(item); }
public DiscountedItem(IRentable rentable, double discount) : base(rentable) { this.DiscountItemBonus = discount; }
private int GetRentingCharges(IRentable rentable) { var rentingCalculatingVisitor = new RentCalculatingVisitor(); return(rentable.Visit(rentingCalculatingVisitor)); }