ActivEarth.Competition.Contests.TeamDisplayTable.MakeTextCellForRow C# (CSharp) Method

MakeTextCellForRow() private method

Creates a new cell for a table with the name of the team.
private MakeTextCellForRow ( string name, Color textColor ) : TableCell
name string
textColor Color The color of the text for this cell.
return TableCell
        private TableCell MakeTextCellForRow(string name, Color textColor)
        {
            TableCell newCell = new TableCell();
            Label textLink = new Label();
            textLink.Text = name;
            textLink.ForeColor = textColor;
            newCell.Controls.Add(textLink);
            return newCell;
        }