Beispiel #1
0
 private void Uloha12BUloz_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var idKatastru   = int.Parse(InputUloha12CisloKatUzem.Text);
         var rodCislo     = InputUloha12RodCislo.Text;
         var cisloListu   = int.Parse(InputUloha12CisloListuVlast.Text);
         var majetkovyPod = double.Parse(InputUloha12MajetkovyPodiel.Text);
         var uspech       = AfrikaKataster.Uloha12Update(rodCislo, cisloListu, idKatastru, majetkovyPod);
         if (uspech == "OK")
         {
             Uloha12List.ItemsSource = AfrikaKataster.Uloha12(rodCislo, cisloListu, idKatastru);
         }
         else
         {
             MessageBox.Show(uspech, "Err");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Zle zadane ciselne hodnoty (Majetkovy Podiel)", "Err");
     }
 }