C# Class ActivEarth.Competition.Contests.ContestDisplayTable

Afficher le fichier Open project: mlcamilli/ActivEarth

Protected Properties

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

Méthodes publiques

Méthode Description
PopulateContestTable ( List contests, List ids, Color backColors, Color textColors ) : void

Adds a list of contests to the table.

Méthodes protégées

Méthode Description
Page_Load ( object sender, EventArgs e ) : void

Loads the page.

Private Methods

Méthode Description
MakeRowForTable ( string contestName, int contestId, Color backColor, Color textColor ) : TableRow

Creates a new row for the table and poulates it.

MakeTextCellForRow ( string name, int contestId, Color textColor ) : TableCell

Makes a table cell which contains the hyperlink to a contest page.

Method Details

Page_Load() protected méthode

Loads the page.
protected Page_Load ( object sender, EventArgs e ) : void
sender object Object that requested the page load.
e EventArgs The event arguments.
Résultat void

PopulateContestTable() public méthode

Adds a list of contests to the table.
public PopulateContestTable ( List contests, List ids, Color backColors, Color textColors ) : void
contests List The contest names to display.
ids List The contest ids of the contests.
backColors Color The colors used for the background of rows in the table.
textColors Color The color of the text used in the table.
Résultat void

Property Details

_contestTable protected_oe property

_contestTable control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Table _contestTable
Résultat global::System.Web.UI.WebControls.Table