///////////////////// Player Tab Methods private void PlayerSelectComboBox_SelectChanged(object sender, EventArgs e) { var selectedplayername = PlayerSelectComboBox.Text; var player = (from qplayer in fileinfo.MatchMetadata.Players where qplayer["NAME"].ToString().ToUpper() == selectedplayername.ToUpper() select qplayer).FirstOrDefault(); PlayerStatsChampImage.Image = null; PlayerItemImage1.Image = null; PlayerItemImage2.Image = null; PlayerItemImage3.Image = null; PlayerItemImage4.Image = null; PlayerItemImage5.Image = null; PlayerItemImage6.Image = null; PlayerItemImage7.Image = null; DetailWindowManager.PopulatePlayerStatsData(player, this); }
///////////////////// Player Tab Methods private void PlayerSelectComboBox_SelectChanged(object sender, EventArgs e) { var selectedplayername = PlayerSelectComboBox.Text; // Find the selected player dictionary var player = (from qplayer in _replayFile.Data.MatchMetadata.AllPlayers where qplayer["NAME"].ToString().ToUpper() == selectedplayername.ToUpper() select qplayer).FirstOrDefault(); // Set images to null, so they appear blank PlayerStatsChampImage.Image = null; PlayerItemImage1.Image = null; PlayerItemImage4.Image = null; PlayerItemImage2.Image = null; PlayerItemImage5.Image = null; PlayerItemImage3.Image = null; PlayerItemImage6.Image = null; PlayerItemImage7.Image = null; // Call the manager to populate data DetailWindowManager.PopulatePlayerStatsData(_requestManager, player, this); }