Re: TActionList and datamodules



Andrea Raimondi wrote:

> My problem with the approach of having TActionList
> instances on a form is that it breaks separation
> between business rules and presentation.

Not at all. Your TAction can simiply call a public method on your
data module. For even better separation you can move your business
logic to a 3rd layer and just do your data layer on he datamodule. But
either way you can keep the real logic away from your prensentation
layer.

--
David Farrell-Garcia
Whidbey Island Software LLC

Posted with XanaNews 1.17.4.1
.