Exemple #1
0
 private string CreateHandlingFeeText(decimal handlingFee)
 {
     if (handlingFee > 0)
     {
         return(" + Handling Fee " + CurrentCurrency.FormatPrice(handlingFee));
     }
     else
     {
         return(String.Empty);
     }
 }
Exemple #2
0
    private void FormatForListItem(
        string shippingID,
        string name,
        decimal shippingCost,
        decimal handlingFee,
        out string text,
        out string value)
    {
        text = String.Format("{0} ({1}{2})",
                             Server.HtmlDecode(name),
                             CurrentCurrency.FormatPrice(shippingCost),
                             CreateHandlingFeeText(handlingFee));

        value = String.Format("{0}-{1}-{2}",
                              shippingID, shippingCost, handlingFee);
    }