public MainWindow() { InitializeComponent(); lista = new List <Osoba>(); see = new SeeUsr(); Ukryjprzyciski(); }
private void PodgladButton_Click(object sender, RoutedEventArgs e) { see = new SeeUsr(); Osoba podglad = lista[ListBox.SelectedIndex]; see.osoba = podglad; see.Show(); }