Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10575 for trunk/sources


Ignore:
Timestamp:
03/12/14 14:37:14 (11 years ago)
Author:
abeham
Message:

#2167: added check for invokerequired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs

    r9905 r10575  
    436436    /// </summary>
    437437    public void RemoveOperationProgressFromView(Control control, bool finishProgress = true) {
     438      if (InvokeRequired) {
     439        Invoke((Action<Control, bool>)RemoveOperationProgressFromView, control, finishProgress);
     440        return;
     441      }
     442
    438443      IProgress progress;
    439444      if (!viewProgressLookup.TryGetValue(control, out progress))
     
    550555      try {
    551556        ((IActionUserInterfaceItem)item.Tag).Execute();
    552       }
    553       catch (Exception ex) {
     557      } catch (Exception ex) {
    554558        ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, ex);
    555559      }
Note: See TracChangeset for help on using the changeset viewer.