private void btnGameAssets_Click(object sender, EventArgs e) { string imagesPath = txtImagesPath.Text.Replace("%PATH%", arcadiaPath); foreach (DataGridViewRow r in dataGridGames.SelectedRows) { string game_fileName = r.Cells["file_name"].Value as string; long gamedb_id = db.getGameDB_ID(platform_id, game_fileName); Game_ImageAssets game_assets = new Game_ImageAssets(platform_id, game_fileName, gamedb_id, imagesPath); if (game_assets.ShowDialog() == DialogResult.OK) { } } }