- Timestamp:
- 12/27/16 13:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.cs
r14185 r14533 34 34 this.closeReason = CloseReason.None; 35 35 this.readOnly = false; 36 36 37 if (ViewAttribute.HasViewAttribute(this.GetType())) 37 38 this.Caption = ViewAttribute.GetViewName(this.GetType()); … … 45 46 set { 46 47 if (InvokeRequired) { 47 Action<string> action = delegate (string s) { this.Caption = s; };48 Action<string> action = delegate (string s) { this.Caption = s; }; 48 49 Invoke(action, value); 49 50 } else { … … 61 62 set { 62 63 if (InvokeRequired) { 63 Action<bool> action = delegate (bool b) { this.ReadOnly = b; };64 Action<bool> action = delegate (bool b) { this.ReadOnly = b; }; 64 65 Invoke(action, value); 65 66 } else { … … 94 95 95 96 protected override void OnEnabledChanged(EventArgs e) { 97 SuspendRepaint(); 96 98 base.OnEnabledChanged(e); 97 99 if (Enabled) SetEnabledStateOfControls(); 100 ResumeRepaint(true); 98 101 } 99 102
Note: See TracChangeset
for help on using the changeset viewer.