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"); } }
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); } } }