C# Class ActivEarth.Competition.Contests.LeaderBoard

This class represents the leaderboard of a contest which displays bracket information to the user.
Inheritance: System.Web.UI.UserControl
Afficher le fichier Open project: mlcamilli/ActivEarth

Protected Properties

Свойство Type Description
LeaderBoardTable global::System.Web.UI.WebControls.Table

Méthodes publiques

Méthode Description
PopulateLeaderBoard ( List teams, Color backColors, Color textColors, string scoreFormat, List rewards ) : void

Fills the leaderboard with the teams that are passed in.

Private Methods

Méthode Description
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.

Method Details

PopulateLeaderBoard() public méthode

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.
Résultat void

Property Details

LeaderBoardTable protected_oe property

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
Résultat global::System.Web.UI.WebControls.Table