Exemple #1
0
        private async void Edit_Click(object sender, RoutedEventArgs e)
        {
            Job j = DataContext as Job;

            if (j != null)
            {
                EditJobContentDialog editDlg = new EditJobContentDialog(j, Jobs.jobsViewModel);
                await editDlg.ShowAsync();
            }
        }
Exemple #2
0
 private async void EditButton_Click(object sender, RoutedEventArgs e)
 {
     if (sender is Button)
     {
         Button btn = sender as Button;
         if (btn.DataContext is Job)
         {
             Job j = btn.DataContext as Job;
             EditJobContentDialog editDlg = new EditJobContentDialog(j, jobsViewModel);
             await editDlg.ShowAsync();
         }
     }
 }