Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/17 12:33:15 (7 years ago)
Author:
jkarder
Message:

#2846: merged r15419 and r15478 into stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs

    r14186 r15495  
    6161    }
    6262
    63     protected override void OnContentChanged() {
     63    protected async override void OnContentChanged() {
    6464      base.OnContentChanged();
    6565      if (Content == null) {
     
    6767      } else {
    6868        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        }
    7174      }
    7275    }
     
    98101    }
    99102
    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      }
    102109    }
    103110
Note: See TracChangeset for help on using the changeset viewer.