Exemple #1
0
 private async void Btn_choose_click(object sender, RoutedEventArgs e)
 {
     ServiceReference1.Vacanci vacanci = (ServiceReference1.Vacanci)listVacanci.SelectedItem;
     Id = vacanci.Id.ToString();
     Btn_Ok.Visibility         = Visibility.Visible;
     Btn_vacancy.Visibility    = Visibility.Hidden;
     Btn_summary.Visibility    = Visibility.Visible;
     listVacanci.Visibility    = Visibility.Hidden;
     listJodseeker.Visibility  = Visibility.Visible;
     listJodseeker.ItemsSource = await service.GetJobAsync(access_level);
 }
Exemple #2
0
        private void listVacanci_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.Vacanci vacanci = (ServiceReference1.Vacanci)listVacanci.SelectedItem;
                service.updateVacanciItemsAsync(vacanci, access_level);
            }
        }