ActivEarth.Competition.Contests.LeaderBoard.MakeScoreCell C# (CSharp) Метод

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

Makes a Table Cell containing the team's score.
private MakeScoreCell ( ContestTeam team, string scoreFormat ) : System.Web.UI.WebControls.TableCell
team ActivEarth.Objects.Competition.Contests.ContestTeam The team to get the score from.
scoreFormat string The format of the score.
Результат System.Web.UI.WebControls.TableCell
        private TableCell MakeScoreCell(ContestTeam team, string scoreFormat)
        {
            TableCell scoreCell = new TableCell();
            scoreCell.HorizontalAlign = HorizontalAlign.Right;

            Label scoreLabel = new Label();
            scoreLabel.Text = team.Score.ToString(scoreFormat);

            scoreCell.Controls.Add(scoreLabel);

            return scoreCell;
        }