Changeset 15312


Ignore:
Timestamp:
08/07/17 14:46:28 (2 months ago)
Author:
mkommend
Message:

#2818: Added call to Application.DoEvents in ResultCollectionView.Item_ToStringChanged to avoid congestion of the event queue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs

    r14185 r15312  
    2121
    2222using System;
     23using System.Windows.Forms;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Core.Views;
     
    5859      }
    5960    }
     61
     62    protected override void Item_ToStringChanged(object sender, EventArgs e) {
     63      if (InvokeRequired) {
     64        Invoke(new EventHandler(Item_ToStringChanged), sender, e);
     65        return;
     66      }
     67
     68      base.Item_ToStringChanged(sender, e);
     69      Application.DoEvents();
     70    }
    6071  }
    6172}
Note: See TracChangeset for help on using the changeset viewer.