private void Uloha22Zmaz_Click(object sender, RoutedEventArgs e) { try { var cisloKataNew = int.Parse(InputUloha22CisloKatNew.Text); var cisloKataDel = int.Parse(InputUloha22CisloKatDel.Text); Uloha22List.ItemsSource = AfrikaKataster.Uloha22(cisloKataDel, cisloKataNew); MessageBox.Show("Uspesne zmazane", "ERR"); } catch (Exception) { MessageBox.Show("Zle zadane parametre", "ERR"); } }