Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/06/12 11:35:59 (12 years ago)
Author:
ascheibe
Message:

#1937

  • fixed wrong assembly references in project files
  • fixed cases of file names
  • removed an InvokeRequired check that Mono couldn't handle
  • changed visibility of inherited setters so that the Mono compiler doesn't crash
  • specified the namespace of the Random class so that Mono doesn't confuses it with our Random class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs

    r7259 r8587  
    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 {
     145      #region Mono Compatibility
     146      // removed the InvokeRequired check because of Mono
     147      mainForm.Invoke((Action)delegate {
    148148        var views = MainFormManager.MainForm.Views.OfType<IContentView>().Where(v => v.Content == content).ToList();
    149149        views.ForEach(v => v.Enabled = enabled);
    150       }
     150      });
     151      #endregion
    151152    }
    152153  }
Note: See TracChangeset for help on using the changeset viewer.