Changeset 15419 for trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
- Timestamp:
- 10/13/17 14:21:09 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r14185 r15419 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 if (Content != null) { 70 try { 71 await System.Threading.Tasks.Task.Run(() => Content.Refresh()); 72 } catch (Exception ex) { 73 HandleServiceException(ex); 74 } 75 } 71 76 } 72 77 } … … 98 103 } 99 104 100 private void refreshButton_Click(object sender, EventArgs e) { 101 Content.RefreshAsync(new Action<Exception>((Exception ex) => HandleServiceException(ex))); 105 private async void refreshButton_Click(object sender, EventArgs e) { 106 try { 107 await System.Threading.Tasks.Task.Run(() => Content.Refresh()); 108 } catch (Exception ex) { 109 HandleServiceException(ex); 110 } 102 111 } 103 112
Note: See TracChangeset
for help on using the changeset viewer.