private void AddToGrid(LogEntryGridRow gridRow, Color?color) { tblLogEntries.Rows.Add(new[] { gridRow.Date, gridRow.Time, gridRow.AppDomainId, gridRow.ThreadId, gridRow.Severity, gridRow.Title, gridRow.Message }); if (color != null) { tblLogEntries.Rows[tblLogEntries.Rows.Count - 1].DefaultCellStyle.ForeColor = (Color)color; } }
private void AddToGrid(LogEntryGridRow gridRow, Color? color) { tblLogEntries.Rows.Add(new[] { gridRow.Date, gridRow.Time, gridRow.AppDomainId, gridRow.ThreadId, gridRow.Severity, gridRow.Title, gridRow.Message }); if (color != null) { tblLogEntries.Rows[tblLogEntries.Rows.Count - 1].DefaultCellStyle.ForeColor = (Color)color; } }