private MakeRowForOwnerTable ( User user, Color backColor, Color textColor ) : TableRow | ||
user | User | The User 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 | TableRow |
private TableRow MakeRowForOwnerTable(User user, Color backColor, Color textColor)
{
TableRow newRow = new TableRow();
newRow.BackColor = backColor;
newRow.Cells.Add(MakeImageCellForRow(user));
newRow.Cells.Add(MakeTextCellForRow(user.UserName, textColor));
User owner = (User)Session["userDetails"];
if (owner.UserID == user.UserID)
{
newRow.Cells.Add(MakeTextCellForRow("Group Owner", textColor));
}
else
{
newRow.Cells.Add(MakeBootCellForRow(user.UserID));
}
return newRow;
}