private void AktivnyPanel(StackPanel aktivny) { foreach (var item in PanelList) { item.Visibility = Visibility.Hidden; } aktivny.Visibility = Visibility.Visible; var list = AfrikaKataster.VsetkoInfo(); if (list[0] != -1) { LabelKat.Content = "K:" + list[0]; LabelList.Content = "L:" + list[2]; LabelObcan.Content = "O:" + list[1]; LabelNeh.Content = "N:" + list[3]; } }