Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/10 05:05:57 (14 years ago)
Author:
swagner
Message:

Set ShowViewsInViewHost of OptimizerMainForm to true again (#972)

File:
1 edited

Legend:

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

    r3398 r3399  
    3333    public static void SuspendRepaint(this Control control) {
    3434      if (control.InvokeRequired)
    35         control.Invoke((Action<Control>)((c) => { c.SuspendRepaint(); }));
     35        control.Invoke(new Action<Control>(c => c.SuspendRepaint()), control);
    3636      else
    3737        SendMessage(control.Handle, WM_SETREDRAW, false, 0);
     
    3939    public static void ResumeRepaint(this Control control, bool refresh) {
    4040      if (control.InvokeRequired)
    41         control.Invoke((Action<Control, bool>)((c, b) => { c.ResumeRepaint(b); }));
     41        control.Invoke(new Action<Control, bool>((c, b) => c.ResumeRepaint(b)), control, refresh);
    4242      else {
    4343        SendMessage(control.Handle, WM_SETREDRAW, true, 0);
Note: See TracChangeset for help on using the changeset viewer.