Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7078


Ignore:
Timestamp:
11/26/11 22:00:02 (13 years ago)
Author:
ascheibe
Message:

#1672 added missing invoke

File:
1 edited

Legend:

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

    r7068 r7078  
    7171
    7272    void item_ItemImageChanged(object sender, EventArgs e) {
    73       RefreshableJob job = sender as RefreshableJob;
    74       if (job != null) {
    75         foreach (ListViewItem item in this.itemsListView.Items) {
    76           if (item.Tag != null) {
    77             RefreshableJob cur = item.Tag as RefreshableJob;
    78             if (cur != null && cur == job) {
    79               this.UpdateListViewItemImage(item);
     73        if (this.itemsListView.InvokeRequired) {
     74            Invoke(new EventHandler(item_ItemImageChanged), sender, e);
     75        } else {
     76          RefreshableJob job = sender as RefreshableJob;
     77          if (job != null) {
     78            foreach (ListViewItem item in this.itemsListView.Items) {
     79                if (item.Tag != null)
     80                {
     81                    RefreshableJob cur = item.Tag as RefreshableJob;
     82                    if (cur != null && cur == job)
     83                    {
     84                        this.UpdateListViewItemImage(item);
     85                    }
     86                }
    8087            }
    81           }
    82         }
     88         }
    8389      }
    8490    }
Note: See TracChangeset for help on using the changeset viewer.