Changeset 3399 for trunk/sources/HeuristicLab.MainForm.WindowsForms
- Timestamp:
- 04/18/10 05:05:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ControlExtensions.cs
r3398 r3399 33 33 public static void SuspendRepaint(this Control control) { 34 34 if (control.InvokeRequired) 35 control.Invoke( (Action<Control>)((c) => { c.SuspendRepaint(); }));35 control.Invoke(new Action<Control>(c => c.SuspendRepaint()), control); 36 36 else 37 37 SendMessage(control.Handle, WM_SETREDRAW, false, 0); … … 39 39 public static void ResumeRepaint(this Control control, bool refresh) { 40 40 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); 42 42 else { 43 43 SendMessage(control.Handle, WM_SETREDRAW, true, 0);
Note: See TracChangeset
for help on using the changeset viewer.