#1021 closed enhancement (done)
Refactor locking / disabling of views in HL 3.3
Reported by: | mkommend | Owned by: | mkommend |
---|---|---|---|
Priority: | low | Milestone: | HeuristicLab 3.3.1 |
Component: | MainForm.WindowsForms | Version: | 3.3.1 |
Keywords: | Cc: |
Description
Currently every view has to override OnReadOnlyChanged and OnLockedChanged and implement a method (SetEnabledStateOfControls) to update the GUI accordingly. This could lead to various styles of implementing this mechanism. It would be better if the SetEnabledStateOfControls method is in a base class (e.g. ContentView), where also the events are automatically registered and the calling of the method is done.
Change History (5)
comment:1 Changed 14 years ago by mkommend
- Status changed from new to assigned
comment:2 Changed 14 years ago by mkommend
comment:3 Changed 14 years ago by mkommend
- Resolution set to fixed
- Status changed from assigned to closed
- Version changed from 3.3 to 3.3.1
The described changes triggered a build increment of HeuristicLab.MainForm.WindowsForms (see ticket #1123).
comment:4 Changed 14 years ago by swagner
- Milestone changed from Iteration 4 to Current
Milestone Iteration 4 deleted
comment:11 Changed 14 years ago by swagner
- Milestone changed from Current to HeuristicLab 3.3.0
Milestone Current deleted
Note: See
TracTickets for help on using
tickets.
Added SetEnabledStateOfControls as protected virtual method in !View. Therefore the overloading of OnReadOnlyChanged and OnLockedChanged got obsolete in most views, because the method got called in the !View respectively ContentView. r3904