Ok, guys, for instance I have this form I told you before Only one DockContent in DockPanel
One edit I made since that times is words in each project appering when user clicks on some project in left pane. I easily created one triad for left pane.
It has projects presenter, projects view, projects model. Here is interfaces for each stuff:
interface IProjectsModel
{
void AttachPresenter(IProjectsModelObserver observer);
System.Collections.Generic.List<Project> projects { get; }
Project selectedProject { get; set; }
}
public interface IProjectsViewObserver
{
void UserChangedSelectedProject(Project project);
}
public interface IProjectsModelObserver
{
void SelectedProjectChanged(Project project);
}
public interface IProjectsView : IView
{
List<Project> projects { set; }
Project project { set; }
void AttachPresenter(IProjectsViewObserver presenter);
}
So at the moment I'm thinking about making a brand new another MVP triad for right pane. But this is not the main issue. The main issue I ran is how can I make communication process between MVP triads I told you above?
I have been read some article on the web telling that in this situation it's necessary to introduce some Model Coordinator to the project?
So guys my questions is:
- Am I right doing two triads intead of just one?
- How can I coordinate two triads between each other?
- Any proposes/suggestions/offers/advices/tips any many many many other stuff you think as useful for me will be very appreciated!
Big thanks in advance, guys! Thanks for your attention and time!