private void button3_Click(object sender, EventArgs e) { var hrac = textBox2.Text; var title = "Vsetky planety hraca : " + hrac; var detailPlanety = new PlanetaDetail(_jadro.NajdiPlanetyHraca(hrac), _jadro, title); detailPlanety.Show(this); }
private void button1_Click_1(object sender, EventArgs e) { var hrac = textBox2.Text; var title = "Povodna rasa : " + comboBoxRasaPovodna.Text + " , sucasna rasa : " + comboBoxRasaSucasna.Text; var detailPlanety = new PlanetaDetail(_jadro.NajdiZmenenePlanety(comboBoxRasaSucasna.Text, comboBoxRasaPovodna.Text), _jadro, title); detailPlanety.Show(this); }
public void KoniecVlakana() { Invoke((MethodInvoker)(() => { var title = "Hladana planeta : " + _hladanyItem; var detailPlanety = new PlanetaDetail(_jadro.KoniecVlaknaList, _jadro, title); detailPlanety.Show(); })); }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { var zoznamHracovForm = new PlanetaDetail(dataGridView1.DataSource, dataGridView1.CurrentRow, _jadro); zoznamHracovForm.KoniecOkna += RefreshOkno; zoznamHracovForm.Show(); _firstDisplayedRow = dataGridView1.FirstDisplayedScrollingRowIndex; //_hladanaPLaneta = ((List<SektorPlanety>)dataGridView1.DataSource)[dataGridView1.CurrentRow.Index]; _selectedRow = dataGridView1.CurrentRow.Index; }