Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9225


Ignore:
Timestamp:
02/18/13 16:45:53 (12 years ago)
Author:
ascheibe
Message:

#2015 fixed displaying of error message and added missing invoke

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r9223 r9225  
    2828using HeuristicLab.MainForm;
    2929using HeuristicLab.MainForm.WindowsForms;
     30using HeuristicLab.PluginInfrastructure;
    3031
    3132namespace HeuristicLab.Clients.Hive.JobManager.Views {
     
    114115        task.ContinueWith((t) => {
    115116          progress.Finish();
    116           MessageBox.Show("An error occured while deleting the job: " + Environment.NewLine + t.Exception, "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
     117          ErrorHandling.ShowErrorDialog("An error occured while deleting the job. ", t.Exception);
    117118        }, TaskContinuationOptions.OnlyOnFaulted);
    118119
    119120        task.ContinueWith((t) => {
    120           itemsListView.SelectedItems.Clear();
     121          itemsListView.Invoke(new Action(() => itemsListView.SelectedItems.Clear()));
    121122        }, TaskContinuationOptions.OnlyOnRanToCompletion);
    122123      }
Note: See TracChangeset for help on using the changeset viewer.