private void listJodseeker_PreviewKeyUp(object sender, KeyEventArgs e) { var u = e.OriginalSource as UIElement; if (e.Key == Key.Enter && access_level == 0) { u.MoveFocus(new TraversalRequest(FocusNavigationDirection.Up)); e.Handled = true; ServiceReference1.JobSeeker job = (ServiceReference1.JobSeeker)listJodseeker.SelectedItem; service.updateJobSeekerAsync(job, access_level); } }
private void Btn_chooseJob_click(object sender, RoutedEventArgs e) { ServiceReference1.JobSeeker jobSeeker = (ServiceReference1.JobSeeker)listJodseeker.SelectedItem; JobSeekerId.Add(jobSeeker.Id.ToString()); }