Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/25/09 13:25:40 (15 years ago)
Author:
mkommend
Message:

added invoke required checks in close view methods (ticket #716)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs

    r2306 r2309  
    8282      protected set {
    8383        if (this.activeView != value) {
    84           this.activeView = value;
    85           OnActiveViewChanged();
     84          if (InvokeRequired) {
     85            Action<IView> action = delegate(IView activeView) { this.ActiveView = activeView; };
     86            Invoke(action, new object[] { value });
     87          } else {
     88            this.activeView = value;
     89            OnActiveViewChanged();
     90          }
    8691        }
    8792      }
Note: See TracChangeset for help on using the changeset viewer.