Changeset 8587 for trunk/sources/HeuristicLab.Optimizer/3.3
- Timestamp:
- 09/06/12 11:35:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs
r7259 r8587 143 143 private static void SetEnabledStateOfContentViews(IStorableContent content, bool enabled) { 144 144 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 {145 #region Mono Compatibility 146 // removed the InvokeRequired check because of Mono 147 mainForm.Invoke((Action)delegate { 148 148 var views = MainFormManager.MainForm.Views.OfType<IContentView>().Where(v => v.Content == content).ToList(); 149 149 views.ForEach(v => v.Enabled = enabled); 150 } 150 }); 151 #endregion 151 152 } 152 153 }
Note: See TracChangeset
for help on using the changeset viewer.