J
Jorge
Hello,
I've got a question. I'm developing an application in C#, in three
layers.
Well... i've got several entities, all of them, of course, can be
created / modified / deleted.
I've written, in the UI layer, a superclass, which is inherited by
every "entity form", with methods, for instance, for the Add /
Update / Delete buttons.
All i need to do in every form, is just add the event handler of every
button, linking to the method of the superclass, and pass some
references of UI components, which are shown / hidden as needed (Load
or Update panels, showing the buttons).
Is this the best way to do this ??? is there any design pattern
appliable to this situation ?. This works fine... but i kinda feel
unconfortable with the code.
Thank you very much, in advance.!
I've got a question. I'm developing an application in C#, in three
layers.
Well... i've got several entities, all of them, of course, can be
created / modified / deleted.
I've written, in the UI layer, a superclass, which is inherited by
every "entity form", with methods, for instance, for the Add /
Update / Delete buttons.
All i need to do in every form, is just add the event handler of every
button, linking to the method of the superclass, and pass some
references of UI components, which are shown / hidden as needed (Load
or Update panels, showing the buttons).
Is this the best way to do this ??? is there any design pattern
appliable to this situation ?. This works fine... but i kinda feel
unconfortable with the code.
Thank you very much, in advance.!