ActivEarth.Competition.Contests.ContestDisplayTable.MakeTextCellForRow C# (CSharp) Метод

MakeTextCellForRow() приватный Метод

Makes a table cell which contains the hyperlink to a contest page.
private MakeTextCellForRow ( string name, int contestId, Color textColor ) : TableCell
name string The name of the contest.
contestId int The contest id.
textColor Color The color of the text in the cell.
Результат TableCell
        private TableCell MakeTextCellForRow(string name, int contestId, Color textColor)
        {
            TableCell newCell = new TableCell();
            HyperLink textLink = new HyperLink();
            textLink.Text = name;
            textLink.ForeColor = textColor;
            textLink.NavigateUrl = "~/Competition/Contests/DisplayContestPage.aspx?id=" + contestId;
            newCell.Controls.Add(textLink);
            return newCell;
        }