C# Class ActivEarth.Groups.MembersDisplayTable

Mostra file Open project: mlcamilli/ActivEarth

Protected Properties

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

Public Methods

Method Description
PopulateMembersTable_Display ( List users, Color backColors, Color textColors ) : void

Formats the preview table of Users on the Group Page based on the given list of Users and colors.

PopulateMembersTable_Owner ( List users, Color backColors, Color textColors ) : void

Formats the table of all Users in the Group with the option to remove users for the Owner of the group.

PopulateMembersTable_SeeAll ( List users, Color backColors, Color textColors ) : void

Formats the table of all Users in the Group based on the given list of Users 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
MakeBootCellForRow ( int userId ) : TableCell

Formats a cell to add to the row with a button allowing the Owner to remove the User from the Group.

MakeImageCellForRow ( User user ) : TableCell

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

MakeRowForOwnerTable ( User user, Color backColor, Color textColor ) : TableRow

Formats a single row for the Owner's table containing the given User.

MakeRowForSeeAllTable ( User user, Color backColor, Color textColor ) : TableRow

Formats a single row for the table of all Users containing the given User.

MakeTextCellForRow ( string text, Color textColor ) : TableCell

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

bootClick ( object sender, EventArgs e ) : void

Method called when a Remove User Button is clicked allowing the Owner to remove the User from the Group.

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 EventArgs
return void

PopulateMembersTable_Display() public method

Formats the preview table of Users on the Group Page based on the given list of Users and colors.
public PopulateMembersTable_Display ( List users, Color backColors, Color textColors ) : void
users List The list of users 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

PopulateMembersTable_Owner() public method

Formats the table of all Users in the Group with the option to remove users for the Owner of the group.
public PopulateMembersTable_Owner ( List users, Color backColors, Color textColors ) : void
users List The list of users 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

PopulateMembersTable_SeeAll() public method

Formats the table of all Users in the Group based on the given list of Users and colors.
public PopulateMembersTable_SeeAll ( List users, Color backColors, Color textColors ) : void
users List The list of users 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

_usersTable protected_oe property

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