Ejemplo n.º 1
0
 private void InputUloha19IdListNew_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         try
         {
             var cisloListu    = int.Parse(InputUloha19IdListNew.Text);
             var cisloKatastru = int.Parse(InputUloha19Katcislo.Text);
             Uloha19ListListVlast.ItemsSource = AfrikaKataster.Uloha19Listy(cisloKatastru, cisloListu);
         }
         catch (Exception)
         {
             MessageBox.Show("Zle zadane parametre", "ERR");
         }
     }
 }
Ejemplo n.º 2
0
 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");
     }
 }