Changeset 3177 for trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
- Timestamp:
- 03/22/10 16:43:57 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ControlExtensions.cs
r3171 r3177 21 21 22 22 using System; 23 using System.Runtime.InteropServices; 23 24 using System.Windows.Forms; 24 using System.Runtime.InteropServices;25 25 26 namespace HeuristicLab. Core.Views {26 namespace HeuristicLab.MainForm.WindowsForms { 27 27 public static class ControlExtensions { 28 28 [DllImport("user32.dll")] -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/HeuristicLab.MainForm.WindowsForms-3.2.csproj
r2900 r3177 93 93 </Compile> 94 94 <None Include="HeuristicLabMainFormWindowsFormsPlugin.cs.frame" /> 95 <Compile Include="ControlExtensions.cs" /> 95 96 <Compile Include="DockForm.cs"> 96 97 <SubType>Form</SubType> -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs
r2962 r3177 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.ComponentModel;25 using System.Drawing;26 using System.Data;27 using System.Text;28 using System.Xml;29 23 using System.Windows.Forms; 30 24 … … 161 155 protected virtual void OnInitialized(EventArgs e) { 162 156 } 157 158 public new bool Enabled { 159 get { return base.Enabled; } 160 set { 161 SuspendRepaint(); 162 base.Enabled = value; 163 ResumeRepaint(true); 164 } 165 } 166 167 public void SuspendRepaint() { 168 ((Control)this).SuspendRepaint(); 169 } 170 public void ResumeRepaint(bool refresh) { 171 ((Control)this).ResumeRepaint(refresh); 172 } 163 173 } 164 174 }
Note: See TracChangeset
for help on using the changeset viewer.