Class Design Question

Topics: CAB & Smart Client Software Factory
Jul 3, 2006 at 7:16 AM
originally posted by: gotgadishor

I Have a Little Question ?
Currently I'm Developing an Application which build upon CAB Elements
In the AppraiserWorkBench when a View is Actually Constricted
Its presenter and its derived class of the presenter r also constricted by the Object Builder dependency
the Derived class is a Generic Class with the following Pattern:
AppraisalDetailViewPresenter : Presenter<IAppraisalDetailView>
which actually Enabled the Base Class to recognize Its View Interface

my Question is how to perform in an elegant way
A BaseView class witch derived from a certain View
and Operate basic Virtual Operation Like
Close() OnViewSet and so on..
if the user click a Close button on the BaseView , the BaseView should reference its presenter
the Question How to implement abase view which recognize its realPresenter
mybe Polymorphizem or the generics Way ,Any Suggestion

Gadi Shor