private static string GetOfferString(Item item, Offer o, string[] listPrices, string[] salePrices)
 {
     using (StringWriter writer = new StringWriter()) {
         writer.WriteLine("Merchant: " + o.Merchant.Name);
         if (o.Merchant.MerchantId != AmazonComMerchantId)
             writer.WriteLine(
                 "Shipping information by Merchant: http://www.amazon.com/gp/help/seller/shipping.html?seller=" +
                 o.Merchant.MerchantId + "&asin=" + item.ASIN);
         if (o.Merchant.MerchantId == AmazonComMerchantId) {
             if (!o.OfferListing[0].IsEligibleForSuperSaverShipping)
                 writer.Write("Not ");
             writer.WriteLine("Eligible for Super Saver Shipping");
         }
         writer.WriteLine("List Price: " + listPrices[1]);
         if(salePrices != null)
             writer.WriteLine("Sale Price: " + salePrices[1]);
         if (o.OfferListing[0].ShippingCharge != null) {
             writer.Write("Shipping Charge: ");
             foreach (OfferListingShippingCharge charge in o.OfferListing[0].ShippingCharge) {
                 writer.Write("  ");
                 writer.WriteLine(charge.ShippingType + " - " + charge.ShippingPrice.FormattedPrice);
             }
         }
         return writer.ToString();
     }
 }
 private static string[] GetPrices(Item item, Offer o, AmazonWSHelper helper, AWSECommerceService ecs, out string[] listPrices, out string[] salePrices)
 {
     string[] prices = o.OfferListing[0].Price.FormattedPrice == "Too low to display"
                       	?
                       		helper.GetPriceTupleFromCart(ecs, item, o.OfferListing[0])
                       	:
                       		new string[] {o.OfferListing[0].Price.Amount, o.OfferListing[0].Price.FormattedPrice};
     listPrices = new string[2];
     salePrices = null;
     prices.CopyTo(listPrices, 0);
     if (o.OfferListing[0].SalePrice != null) {
         salePrices = new string[2];
         prices = o.OfferListing[0].SalePrice.FormattedPrice == "Too low to display"
                  	?
                  		helper.GetPriceTupleFromCart(ecs, item, o.OfferListing[0])
                  	:
                  		new string[] {o.OfferListing[0].SalePrice.Amount, o.OfferListing[0].SalePrice.FormattedPrice};
         prices.CopyTo(salePrices, 0);
     }
     return prices;
 }