示例#1
0
 private async Task OnAddJob()
 {
     try
     {
         var result = new Configuration.JobConfiguration(Guid.Empty).ShowDialog();
         await OnRefresh();
     }
     catch (Exception ex)
     {
         _logger.Error(ex, "OnAddJob failed to execute");
     }
 }
示例#2
0
 private void ConfigItem_Click(object sender, RoutedEventArgs e)
 {
     if (e.Source is Button button && button.DataContext != null)
     {
         if (button.DataContext is Models.Job job)
         {
             var result = new Configuration.JobConfiguration(job.Id).ShowDialog();
             if (result == true)
             {
             }
             _viewModel.RefreshCommand.Execute(null);
         }
     }
 }