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