Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8393 for branches


Ignore:
Timestamp:
08/02/12 16:05:46 (12 years ago)
Author:
ascheibe
Message:

#1861 applied patch 0062

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Mono/HeuristicLab.Optimizer/3.3/FileManager.cs

    r7259 r8393  
    143143    private static void SetEnabledStateOfContentViews(IStorableContent content, bool enabled) {
    144144      HeuristicLab.MainForm.WindowsForms.MainForm mainForm = MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>();
    145       if (mainForm.InvokeRequired)
    146         mainForm.Invoke((Action<IStorableContent, bool>)SetEnabledStateOfContentViews, content, enabled);
    147       else {
    148         var views = MainFormManager.MainForm.Views.OfType<IContentView>().Where(v => v.Content == content).ToList();
    149         views.ForEach(v => v.Enabled = enabled);
    150       }
     145      mainForm.Invoke((Action)delegate {
     146         var views = MainFormManager.MainForm.Views.OfType<IContentView>().Where(v => v.Content == content).ToList();
     147         views.ForEach(v => v.Enabled = enabled);
     148      });
    151149    }
    152150  }
Note: See TracChangeset for help on using the changeset viewer.