private void MainForm_Shown(object sender, EventArgs e) { // if we loaded succesfully if (gamePool.pluginsLoaded()) { // if we only have 1 game start it right away if (gamePool.getGameNames().Count == 1) { startGame(gamePool.getGameNames()[0]); } } }
private void MainForm_Shown(object sender, EventArgs e) { // if we loaded succesfully if (gamePool.pluginsLoaded()) { // add all games to our combo box foreach (String s in gamePool.getGameNames()) { comboBox1.Items.Add(s); } // if we only have 1 game start it right away if (gamePool.getGameNames().Count == 1) { startGame(gamePool.getGameNames()[0]); } } }