/// <summary>
 /// Formats a single row to the table using the given message.
 /// </summary>
 /// <param name="message">The message to display in the row</param>
 /// <param name="backColor">The background color to display in the row</param>
 /// <param name="textColor">The text color to display in the row</param>
 private TableRow MakeRowForTable(ActivEarth.Objects.Groups.Message message, Color backColor, Color textColor)
 {
     TableRow newRow = new TableRow();
     newRow.BackColor = backColor;
     newRow.Cells.Add(MakeTextCellForRow("<b><u>" + message.Title + "</u></b><br/><br/>" +
         message.Text + "<br/><br/><br/>" + message.Time + "&nbsp;&nbsp;&nbsp;" + message.Date + "</div>", textColor));
     return newRow;
 }
 /// <summary>
 /// Formats a single row to the table with the given Group's information.
 /// </summary>
 /// <param name="group">The group to display in the row</param>
 /// <param name="backColor">The background color to display in the row</param>
 /// <param name="textColor">The text color to display in the row</param>
 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;
 }
        /// <summary>
        /// Formats a single row to the table using the given Groups.
        /// </summary>
        /// <param name="group">The group to display in the row</param>
        /// <param name="backColor">The background color to display in the row</param>
        /// <param name="textColor">The text color to display in the row</param>
        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.Owner.UserName, textColor));
            newRow.Cells.Add(MakeTextCellForRow(group.ActivityScore.TotalScore.ToString(), textColor));
            newRow.Cells.Add(MakeTextCellForRow(group.GreenScore.ToString(), textColor));

            if (userDetails.UserID != group.Owner.UserID)
            {
                if (MembersContains(group.Members, userDetails))
                {
                    newRow.Cells.Add(MakeButtonCellForRow(group.ID, 0));
                }
                else
                {
                    newRow.Cells.Add(MakeButtonCellForRow(group.ID, 1));
                }
            }
            else
            {
                newRow.Cells.Add(MakeTextCellForRow("Group Owner", textColor));
            }
            return newRow;
        }