private void DodavanjeOpstineUOblasti()
        {
            OpstineUOblastiView o = new OpstineUOblastiView()
            {
                NazivOpstine = tbxNazivOpstine.Text,
            };

            DTOManangerOpstineUOblasti.SacuvajOpstineUOblasti(o, this.IdOblasti);
        }
Beispiel #2
0
        private void prikaziOpstineUOBlasti()
        {
            if (cmbIzaberi.SelectedIndex == 3)
            {
                btnIzmeni.Visible = false;
            }
            dataGridView1.DataSource = DTOManangerOpstineUOblasti.VratiOpstineUOblastiPrikaz(IdOblasti);

            this.postaviImenaKolonaOpstineUOblasti();
        }
Beispiel #3
0
        private void ObrisiOpstineUOblasti()
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                return;
            }
            int indeks = dataGridView1.SelectedRows[0].Index;

            DTOManangerOpstineUOblasti.ObrisiOpstineUOblasti(Int32.Parse(dataGridView1[0, indeks].Value.ToString()));
            this.prikaziPodatke();
        }