Hi,
I have an application that has a window similar to the one bellow .
The requirement here is that when the user clicks the Save button everything has to get saved. The "Save" and "Reset" buttons are "common" to all tabs. Hence, when the "Personal Information" tab is selected and "Save" is clicked the program should also save changes made in the "Friends" tab and changes made in the "Employment History" tab.
The app already has code for the following and I want to keep this code:
-PersonalInformationView , PersonalInformationPresenter, PersonalInformationModel
-FriendsView, FriendsPresenter, FriendsModel
-EmploymentHistoryView, EmploymentHistoryPresenter, EmploymentHistoryModel
Each presenter has a Save method.
The question is what would be a good design pattern to use taking into consideration that I want to keep the code I already have. Also, I want this window to have model, view, presenter as well. Or maybe I should rephrase my question a bit: what's the best way of including "sub-views", "sub-presenters" when programming MVP ?
Regards, MadSeb