C# Class ActivEarth.Groups.WallDisplay

Inheritance: System.Web.UI.UserControl
ファイルを表示 Open project: mlcamilli/ActivEarth

Protected Properties

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

Public Methods

Method Description
PopulateMessageTable ( List messages, Color backColors, Color textColors ) : void

Formats the table of Messages based on the given list of Messages and colors.

Protected Methods

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

This is a component, so no work is required when it loads. The population of the table is handled by the page ASP.

Private Methods

Method Description
MakeImageCellForRow ( User user ) : System.Web.UI.WebControls.TableCell

Formats a cell to add to the row containing the given User's picture.

MakeRowForTable ( ActivEarth message, Color backColor, Color textColor ) : System.Web.UI.WebControls.TableRow

Formats a single row to the table using the given message.

MakeTextCellForRow ( string text, Color textColor ) : System.Web.UI.WebControls.TableCell

Formats a cell to add to the row containing the given text.

getUserImageUrl ( User user, string imageSizeName ) : string

Returns the relative url for an image. Current image sizes are: - icon: a 150x150 image for the user's profile

Method Details

Page_Load() protected method

This is a component, so no work is required when it loads. The population of the table is handled by the page ASP.
protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

PopulateMessageTable() public method

Formats the table of Messages based on the given list of Messages and colors.
public PopulateMessageTable ( List messages, Color backColors, Color textColors ) : void
messages List The list of messages to display in the table
backColors Color The list of alternating background colors to display in the table
textColors Color The list of alternating text colors to display in the table
return void

Property Details

_wall protected_oe property

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