ActivEarth.Groups.OwnedGroupsDisplayTable.MakeRowForTable C# (CSharp) Method

MakeRowForTable() private method

Formats a single row to the table with the given Group's information.
private MakeRowForTable ( ActivEarth group, Color backColor, Color textColor ) : System.Web.UI.WebControls.TableRow
group ActivEarth The group to display in the row
backColor Color The background color to display in the row
textColor Color The text color to display in the row
return System.Web.UI.WebControls.TableRow
        private TableRow MakeRowForTable(ActivEarth.Objects.Groups.Group group, Color backColor, Color textColor)
        {
            TableRow newRow = new TableRow();
            newRow.BackColor = backColor;
            newRow.Cells.Add(MakeLinkCellForRow(group.Name, group.ID, textColor));
            newRow.Cells.Add(MakeTextCellForRow(group.Description, textColor));
            newRow.Cells.Add(MakeTextCellForRow(group.ActivityScore.TotalScore.ToString(), textColor));
            newRow.Cells.Add(MakeTextCellForRow(group.GreenScore.ToString(), textColor));
            return newRow;
        }