private void updateInformation(Player player) { core.computeRanks(); nameContent.Text = player.Name; rankedContent.Text = core.getRank(player).ToString(); if (player.hasBeenPlayed(Constants.Terran)) { terranContent.Text = "Win: " + player.Victory[Constants.Terran] + ", Loss: " + player.Defeat[Constants.Terran] + ", Elo: " + player.Elo[Constants.Terran]; } else { terranContent.Text = "Estimated Elo: " + player.Elo[Constants.Terran]; } if (player.hasBeenPlayed(Constants.Zerg)) { zergContent.Text = "Win: " + player.Victory[Constants.Zerg] + ", Loss: " + player.Defeat[Constants.Zerg] + ", Elo: " + player.Elo[Constants.Zerg]; } else { zergContent.Text = "Estimated Elo: " + player.Elo[Constants.Zerg]; } if (player.hasBeenPlayed(Constants.Protoss)) { protossContent.Text = "Win: " + player.Victory[Constants.Protoss] + ", Loss: " + player.Defeat[Constants.Protoss] + ", Elo: " + player.Elo[Constants.Protoss]; } else { protossContent.Text = "Estimated Elo: " + player.Elo[Constants.Protoss]; } if (player.hasBeenPlayed(Constants.Random)) { randomContent.Text = "Win: " + player.Victory[Constants.Random] + ", Loss: " + player.Defeat[Constants.Random] + ", Elo: " + player.Elo[Constants.Random]; } else { randomContent.Text = "Estimated Elo: " + player.Elo[Constants.Random]; } overallContent.Text = "Win: " + player.getOverallVictory() + ", Loss: " + player.getOverallDefeat() + ", Elo: " + player.getOverallElo(); terranContent.Enabled = player.Races[Constants.Terran]; labelTerran.Enabled = player.Races[Constants.Terran]; zergContent.Enabled = player.Races[Constants.Zerg]; labelZerg.Enabled = player.Races[Constants.Zerg]; protossContent.Enabled = player.Races[Constants.Protoss]; labelProtoss.Enabled = player.Races[Constants.Protoss]; randomContent.Enabled = player.Races[Constants.Random]; labelRandom.Enabled = player.Races[Constants.Random]; terranContent.ForeColor = labelTerran.ForeColor; zergContent.ForeColor = labelZerg.ForeColor; protossContent.ForeColor = labelProtoss.ForeColor; randomContent.ForeColor = labelRandom.ForeColor; }