public string DisplayText { get { if (this.Count == 0) return string.Empty; else { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine("Order of" + DateTime.Now.ToString()); stringBuilder.AppendLine(); stringBuilder.AppendLine("Customer: " + Username); stringBuilder.AppendLine("-------------------------------------------------------------------------------------------------------------------------------------"); foreach (var orderDetailBLL in this) { stringBuilder.AppendLine(orderDetailBLL.DisplayText); } stringBuilder.AppendLine("-------------------------------------------------------------------------------------------------------------------------------------"); stringBuilder.AppendLine("Total: " + this.Total.ToString() + " $"); return stringBuilder.ToString(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)