private void Uloha13BZmaz_Click(object sender, RoutedEventArgs e) { try { var idKatastru = int.Parse(InputUloha12CisloKatUzem.Text); var rodCislo = InputUloha12RodCislo.Text; var cisloListu = int.Parse(InputUloha12CisloListuVlast.Text); Uloha12List.ItemsSource = AfrikaKataster.Uloha13(rodCislo, cisloListu, idKatastru); } catch (Exception) { MessageBox.Show("Zle zadane parametre", "ERR"); } }