Automatak.Simulator.UI.LogControl.PaintRows C# (CSharp) Method

PaintRows() private method

private PaintRows ( Graphics g, IEnumerable rows ) : void
g System.Drawing.Graphics
rows IEnumerable
return void
        void PaintRows(Graphics g, IEnumerable<LogItem> rows)
        {
            // Declare and instantiate a new pen.
            var brush = new System.Drawing.SolidBrush(this.ForeColor);

            var ri = 0;

            foreach (var s in rows)
            {
                brush.Color = GetColor(s.displayHint);
                g.DrawString(s.message, this.Font, brush, new PointF(0, RowPosition(ri)));
                ++ri;
            }
        }