private void btnIzmeni_Click(object sender, EventArgs e) { if (listaPredmeta.SelectedItems.Count == 0) { MessageBox.Show("Izaberite angazman koji zelite na izmenite!"); return; } int idAngazmana = Int32.Parse(listaPredmeta.SelectedItems[0].SubItems[0].Text); AngazmanBasic a = DTOManager.vratiAngazman(idAngazmana); AzuriranjeAngazmanaForm formaAzuriranje = new AzuriranjeAngazmanaForm(a); formaAzuriranje.ShowDialog(); this.popuniTabeluPodacima(); }