Changeset 15495 for stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Timestamp:
- 12/06/17 12:33:15 (7 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15419,15478
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r14186 r15495 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.