public void UpdateTable() { int i = 0; Player1.Text = PlayerList.AllPlayers[i].Points.ToString(); Player1Points.Text = PlayerList.AllPlayers[i].UserName; i++; if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player2.Text = PlayerList.AllPlayers[i].Points.ToString(); Player2Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player2.Hide(); Player2Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player3.Text = PlayerList.AllPlayers[i].Points.ToString(); Player3Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player3.Hide(); Player3Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player4.Text = PlayerList.AllPlayers[i].Points.ToString(); Player4Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player4.Hide(); Player4Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player5.Text = PlayerList.AllPlayers[i].Points.ToString(); Player5Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player5.Hide(); Player5Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player6.Text = PlayerList.AllPlayers[i].Points.ToString(); Player6Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player6.Hide(); Player6Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player7.Text = PlayerList.AllPlayers[i].Points.ToString(); Player7Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player7.Hide(); Player7Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player8.Text = PlayerList.AllPlayers[i].Points.ToString(); Player8Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player8.Hide(); Player8Points.Hide(); } }