C# Class ActivEarth.Groups.GroupsDisplayTable

Mostrar archivo Open project: mlcamilli/ActivEarth

Protected Properties

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

Public Methods

Method Description
PopulateGroupsTable ( List groups, Color backColors, Color textColors ) : void

Formats the table of Groups based on the given list of Groups 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
MakeButtonCellForRow ( int groupID, int leaveOrJoin ) : TableCell

Formats a cell to add to the row with a button allowing the User to join the Group if they are not a Member and to leave the Group if the User is not a Member of the Group.

MakeLinkCellForRow ( string text, int groupId, Color textColor ) : TableCell

Formats a cell to add to the row containing the given text linking to the given Group ID.

MakeRowForTable ( ActivEarth group, Color backColor, Color textColor ) : TableRow

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

MakeTextCellForRow ( string text, Color textColor ) : TableCell

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

MembersContains ( List members, User user ) : Boolean

Determines whether or not the given user is in the list of Members.

joinClick ( object sender, EventArgs e ) : void

Method called when a Join Button is clicked allowing the User to join the Group.

quitClick ( object sender, EventArgs e ) : void

Method called when a Leave Button is clicked allowing the User to leave the Group.

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

PopulateGroupsTable() public method

Formats the table of Groups based on the given list of Groups and colors.
public PopulateGroupsTable ( List groups, Color backColors, Color textColors ) : void
groups 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

_groupsTable protected_oe property

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