Example #1
0
 public ZoznamHracovForm(string sektor, Jadro jadro, string title)
 {
     InitializeComponent();
     _jadro = jadro;
     Text   = title;
     dataGridView1.DataSource = jadro.ZobrazSektor(sektor);
     _sektor = sektor;
 }
Example #2
0
        private string RefreshOkno(string typ)
        {
            if (_rasa != null)
            {
                var planety = (List <SektorPlanety>)dataGridView1.DataSource;
                planety[_selectedRow].Typ = typ;
                dataGridView1.DataSource  = null;
                dataGridView1.DataSource  = planety;
                //_jadro.UkoncenieHladaniePlanetRasy += KoniecHladaniaPlanetRasy;
                //_jadro.VypisPlanetyRasy(_rasa, int.Parse(_sektor));
                dataGridView1.FirstDisplayedScrollingRowIndex = _firstDisplayedRow;
            }
            else if (_sektor != null)
            {
                dataGridView1.DataSource = null;
                dataGridView1.DataSource = _jadro.ZobrazSektor(_sektor);
            }

            return(string.Empty);
        }