private void btnShowCustomerInfo_Click(object sender, RoutedEventArgs e) { Customer kunde = listBCustomers.SelectedItem as Customer; tabWindows.CustomerInfo dialog = new tabWindows.CustomerInfo(kunde); dialog.SetPerson(); dialog.ParentWindow = this; dialog.Show(); }