private void btnIzmeni_Click(object sender, EventArgs e) { if (listaNenastavnogOsoblja.SelectedItems.Count == 0) { MessageBox.Show("Izaberite nenastavno lice koje zelite da izmenite!"); return; } int idOsobe = Int32.Parse(listaNenastavnogOsoblja.SelectedItems[0].SubItems[0].Text); NeNastavnoLiceBasic n = DTOManager.vratiNeNastavnoLice(idOsobe); DodajNeNastavnoLiceForm forma = new DodajNeNastavnoLiceForm(n); forma.ShowDialog(); popuniTabeluPodacima(); }