コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void KoniecVlakana()
 {
     Invoke((MethodInvoker)(() =>
     {
         var title = "Hladana planeta : " + _hladanyItem;
         var detailPlanety = new PlanetaDetail(_jadro.KoniecVlaknaList, _jadro, title);
         detailPlanety.Show();
     }));
 }
コード例 #4
0
        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;
        }