- Timestamp:
- 04/18/10 04:33:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs
r3354 r3398 58 58 public virtual bool ReadOnly { 59 59 get { return this.readOnly; } 60 60 set { 61 61 if (InvokeRequired) { 62 62 Action<bool> action = delegate(bool b) { this.ReadOnly = b; }; … … 208 208 209 209 public void SuspendRepaint() { 210 ((Control)this).SuspendRepaint(); 210 if (InvokeRequired) 211 Invoke((MethodInvoker)SuspendRepaint); 212 else 213 ((Control)this).SuspendRepaint(); 211 214 } 212 215 public void ResumeRepaint(bool refresh) { 216 if (InvokeRequired) 217 Invoke((Action<bool>)ResumeRepaint,refresh); 218 else 213 219 ((Control)this).ResumeRepaint(refresh); 214 220 }
Note: See TracChangeset
for help on using the changeset viewer.