public PopulateMembersTable_Owner ( List |
||
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 |
public void PopulateMembersTable_Owner(List<User> users, Color[] backColors, Color[] textColors)
{
int colorIndex = 0;
int textIndex = 0;
foreach (User user in users)
{
_usersTable.Rows.Add(MakeRowForOwnerTable(user, backColors[colorIndex], textColors[textIndex]));
colorIndex++;
if (colorIndex == backColors.Length)
{
colorIndex = 0;
}
textIndex++;
if (textIndex == textColors.Length)
{
textIndex = 0;
}
}
}