Skip to content

Instantly share code, notes, and snippets.

@kylewest
Created March 8, 2012 14:38
Show Gist options
  • Save kylewest/2001279 to your computer and use it in GitHub Desktop.
Save kylewest/2001279 to your computer and use it in GitHub Desktop.
var sb = new StringBuilder();
sb.AppendLine(string.Format("<strong>{0} ({1})</strong>", ItmGroup.Name, PartNumber));
if (!string.IsNullOrEmpty(Notes))
{
sb.AppendLine(string.Format("<div class=\"order_item_notes\">{0}</div>", Notes.Replace(";","<br/>")));
}
if (ItmItemSpecs.Count != 0)
{
sb.AppendLine("<div class=\"order_item_specs\">");
foreach (ItmItemSpec spec in ItmItemSpecs)
{
sb.AppendLine(string.Format("{0} : {1}<br/>", spec.Name, spec.Value));
}
sb.AppendLine("</div>");
}
return sb.ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment