StevenThuriot / Nova

Small graphical framework to quickly start developing your apps without having to worry too much about controls and looks.
MIT License
2 stars 0 forks source link

BaseAction always triggers validation #1

Closed StevenThuriot closed 12 years ago

StevenThuriot commented 12 years ago

..and it shouldn't.

Create a BaseValidatingAction for those actions that trigger validation, which inherits BaseAction. With the current implementation, running a simple ICommand will trigger validation. Because of this, the screen might be shown as valid while in reality, it is not.

e.g: SelectedValueChanged, Open/Close Window, Cancel buttons, ... should inherit BaseAction. Save, Send, ... should inherit BaseValidatingAction.

The existing validation logic in BaseAction should be extracted into a new inheriting class.