Example #1
0
 private void VlozKataster_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var InputNazov = InputNazovKatUzemia.Text;
         var IdKat      = int.Parse(InputIDKatUzem.Text);
         var uspech     = AfrikaKataster.PridajKatastralUzemie(IdKat, InputNazov);
         if (uspech == "OK")
         {
             Uloha15List.ItemsSource = AfrikaKataster.Uloha15();
         }
         else
         {
             MessageBox.Show(uspech, "ERR");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Zle zadane parametre", "ERR");
     }
 }