C# Класс ActivEarth.Competition.Contests.LeaderBoard

This class represents the leaderboard of a contest which displays bracket information to the user.
Наследование: System.Web.UI.UserControl
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
LeaderBoardTable global::System.Web.UI.WebControls.Table

Открытые методы

Метод Описание
PopulateLeaderBoard ( List teams, Color backColors, Color textColors, string scoreFormat, List rewards ) : void

Fills the leaderboard with the teams that are passed in.

Приватные методы

Метод Описание
MakeBracketCell ( ContestTeam team ) : System.Web.UI.WebControls.TableCell

Makes a bracket cell for a row.

MakeRewardCell ( ContestTeam team, List rewards ) : System.Web.UI.WebControls.TableCell

Makes a table cell containing the reward the team will receive.

MakeRowForTable ( ContestTeam team, Color backColor, Color textColor, string scoreFormat, List rewards ) : System.Web.UI.WebControls.TableRow

Creates a new row for the leaderboard table.

MakeScoreCell ( ContestTeam team, string scoreFormat ) : System.Web.UI.WebControls.TableCell

Makes a Table Cell containing the team's score.

MakeTeamCell ( ContestTeam team ) : System.Web.UI.WebControls.TableCell

Makes a Team cell for the row.

Описание методов

PopulateLeaderBoard() публичный метод

Fills the leaderboard with the teams that are passed in.
public PopulateLeaderBoard ( List teams, Color backColors, Color textColors, string scoreFormat, List rewards ) : void
teams List The teams corressponding to the brackets realative to the user.
backColors Color The backcolors the leaderboard should use.
textColors Color The text colors the leaderboard should use.
scoreFormat string The format of each teams score.
rewards List The reward levels of each bracket.
Результат void

Описание свойств

LeaderBoardTable защищенное свойство

LeaderBoardTable control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Table LeaderBoardTable
Результат global::System.Web.UI.WebControls.Table