private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { InfoHrac info = new InfoHrac(dataGridView1.CurrentRow.Cells[0].Value.ToString(), listPodm); if (info.ShowDialog() == DialogResult.OK) { jadro.PridajHraca(info.hrac, listPodm, out listPodm); } }