示例#1
0
 private void InputUloha19Katcislo_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         try
         {
             var cisloKata = int.Parse(InputUloha19Katcislo.Text);
             Uloha19ListKata.ItemsSource = AfrikaKataster.Uloha19CisloKat(cisloKata);
         }
         catch (Exception)
         {
             MessageBox.Show("Zle zadane parametre", "ERR");
         }
     }
 }
示例#2
0
 private void VsetkoKataster_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         try
         {
             var cisKatastra = int.Parse(VsetkoKataster.Text);
             VsetkoListyKatastra.ItemsSource         = AfrikaKataster.Uloha19CisloKat(cisKatastra);
             VsetkoNehnutelnostiKatastra.ItemsSource = AfrikaKataster.UlohaVsetkoNehnutelnosti(cisKatastra);
         }
         catch (Exception)
         {
             MessageBox.Show("Zle zadany kataster cislo", "Err");
         }
     }
 }
示例#3
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");
     }
 }