C# Class ActivEarth.Competition.Contests.ContestDisplayTable

Exibir arquivo Open project: mlcamilli/ActivEarth

Protected Properties

Property Type Description
_contestTable global::System.Web.UI.WebControls.Table

Public Methods

Method Description
PopulateContestTable ( List contests, List ids, Color backColors, Color textColors ) : void

Adds a list of contests to the table.

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void

Loads the page.

Private Methods

Method 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 method

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

PopulateContestTable() public method

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