private void DeleteList_Click(object sender, RoutedEventArgs e) { try { var cisloListuNew = int.Parse(InputUloha19IdListNew.Text); var cisloListuDel = int.Parse(InputUloha19IdListDel.Text); var cisloKatastru = int.Parse(InputUloha19Katcislo.Text); var odpoved = AfrikaKataster.Uloha19(cisloListuDel, cisloKatastru, cisloListuNew); if (odpoved == "OK") { var cisloKata = int.Parse(InputUloha19Katcislo.Text); Uloha19ListKata.ItemsSource = AfrikaKataster.Uloha19CisloKat(cisloKata); Uloha19ListListVlast.ItemsSource = AfrikaKataster.Uloha19Listy(cisloKatastru, cisloListuNew); } else { MessageBox.Show(odpoved, "Err"); } } catch (Exception) { MessageBox.Show("Zle zadane parametre", "ERR"); } }