Changeset 3904 for trunk/sources/HeuristicLab.MainForm.WindowsForms
- Timestamp:
- 06/08/10 17:46:53 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ContentView.cs
r3788 r3904 54 54 if (this.content != null) this.RegisterContentEvents(); 55 55 this.OnContentChanged(); 56 this.SetEnabledStateOfControls(); 56 57 this.OnChanged(); 57 58 this.ResumeRepaint(true); … … 73 74 locked = value; 74 75 OnLockedChanged(); 76 this.SetEnabledStateOfControls(); 75 77 PropertyInfo prop = typeof(IContentView).GetProperty("Locked"); 76 78 PropagateStateChanges(this, typeof(IContentView), prop); … … 91 93 } 92 94 } 93 94 95 /// <summary> 95 96 /// Adds eventhandlers to the current instance. … … 109 110 protected virtual void OnContentChanged() { 110 111 } 112 113 /// <summary> 114 /// This method is called if the ReadyOnly, Locked or Content property of the ContentView changes to update the controls of the view. 115 /// </summary> 116 protected override void SetEnabledStateOfControls() { 117 } 111 118 } 112 119 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/View.cs
r3788 r3904 67 67 if (value != readOnly) { 68 68 this.SuspendRepaint(); 69 readOnly = value; 70 OnReadOnlyChanged(); 69 this.readOnly = value; 70 this.OnReadOnlyChanged(); 71 this.SetEnabledStateOfControls(); 71 72 PropertyInfo prop = typeof(IView).GetProperty("ReadOnly"); 72 73 PropagateStateChanges(this, typeof(IView), prop); … … 75 76 } 76 77 } 78 } 79 /// <summary> 80 /// This method is called if the ReadyOnly property of the View changes to update the controls of the view. 81 /// </summary> 82 protected virtual void SetEnabledStateOfControls() { 77 83 } 78 84
Note: See TracChangeset
for help on using the changeset viewer.