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"); } }
private void StackPanel_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { VsetkoKatastre.ItemsSource = AfrikaKataster.Uloha15(); VsetkoObcaniaKatastra.ItemsSource = AfrikaKataster.VsetkoObyvatelstvo(); AktivnyPanel(UlohVsetkoPanel); }
private void Kataster_Click(object sender, RoutedEventArgs e) { AktivnyPanel(KatUzemPanel); Uloha15List.ItemsSource = AfrikaKataster.Uloha15(); }