public void AddARow(Dictionary <String, object> items, Dictionary <int, String> colors = null) { HtmlTableRow row = _table.AddRow(); foreach (string key in items.Keys) { int index = _table.GetField(key); if (index >= 0) { bool isHeaderCell; HtmlTableCell cell = row.Cell(index, out isHeaderCell); cell.Content = items[key]; cell.BackColor = Color.FromName(colors[index]); } } //ReportForm.addValues(items, colors); }