As a general question, when dealing with somehow similar tasks what you recommend? Using a multipotential form and hiding inactive parts or desgining a form for each task?
Printable View
As a general question, when dealing with somehow similar tasks what you recommend? Using a multipotential form and hiding inactive parts or desgining a form for each task?
Kinda depends on what's in those forms in my opinion.
Examples:
1. If you have a app that is managing a table in a database, the "Add" form and the "Edit" form might look exactly the same. Then I would use the same form and have a variable holding if its an "Add" or an "Edit" you're doing.
2. When alot of the functionality is the same and you have done alot of changes to the form, I would recommend doing a basclass to inherit from and then do the small changes in different forms.
3. When the forms are not alike at all or very different I would recommend totally separate forms.
This no rule or anything, mere my humble opinion. :)