Changeset 16307 for branches/2845_EnhancedProgress/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
- Timestamp:
- 11/20/18 11:54:35 (6 years ago)
- Location:
- branches/2845_EnhancedProgress
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r14185 r16307 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 61 61 } 62 62 63 protected override void OnContentChanged() {63 protected async override void OnContentChanged() { 64 64 base.OnContentChanged(); 65 65 if (Content == null) { … … 67 67 } else { 68 68 hiveExperimentListView.Content = Content.Jobs; 69 if (Content != null) 70 Content.RefreshAsync(new Action<Exception>((Exception ex) => HandleServiceException(ex))); 69 try { 70 await System.Threading.Tasks.Task.Run(() => Content.Refresh()); 71 } catch (Exception ex) { 72 HandleServiceException(ex); 73 } 71 74 } 72 75 } … … 98 101 } 99 102 100 private void refreshButton_Click(object sender, EventArgs e) { 101 Content.RefreshAsync(new Action<Exception>((Exception ex) => HandleServiceException(ex))); 103 private async void refreshButton_Click(object sender, EventArgs e) { 104 try { 105 await System.Threading.Tasks.Task.Run(() => Content.Refresh()); 106 } catch (Exception ex) { 107 HandleServiceException(ex); 108 } 102 109 } 103 110
Note: See TracChangeset
for help on using the changeset viewer.