private void RenderStockDetails(StockHandle stock, TextWriter document) { var details = new Dictionary <string, object>(); details["Name"] = stock.Name; details["Isin"] = stock.Isin; details["Currency"] = stock.StockExchange.Currency.Name; HtmlRenderingUtils.RenderDictionary(details, document); }
public void Render(KeyValueSection section, IRenderingContext context) { context.Document.WriteLine("<h2>{0}</h2>", section.Name); HtmlRenderingUtils.RenderDictionary(section.Entries, context.Document); }