private void lstChoices_SelectedIndexChanged(object sender, EventArgs e) { SelectedGame = lstChoices.SelectedItem as Game; }
private Game ProcessGameNode(XmlNode gameNode, string romFile) { Game game = new Game(); game.path = romFile; game.desc = gameNode.SelectSingleNode("Overview")?.InnerText; game.developer = gameNode.SelectSingleNode("Developer")?.InnerText; game.genre = Genre(gameNode.SelectNodes("Genres")); game.image = Image(gameNode.SelectNodes("Images/boxart")); game.name = gameNode.SelectSingleNode("GameTitle")?.InnerText; game.players = gameNode.SelectSingleNode("Players")?.InnerText; game.publisher = gameNode.SelectSingleNode("Publisher")?.InnerText; game.releasedate = gameNode.SelectSingleNode("ReleaseDate")?.InnerText; return game; }