Questions tagged [mvp]
The Model-View-Presenter (MVP) architectural pattern that enforces the separation of concerns in presentation logic. This pattern is a derivation of the Model–View–Controller (MVC) architectural pattern.
117 questions
2 votes
1 answer
127 views
Concrete implementation of MVP with "dumb" view
I recently started designing my first MVP-app. I like the idea of having a "dumb" view to be able to cover as much of the code with unit tests. The app I build will be an app to create ...
5 votes
2 answers
2k views
Passing data through events to adhere to the Tell-Don't-Ask principle?
In my little WinForm app, intended to practice as a hobbyist, I'm using this code to pass data from the View to its Presenter: public event Action<object, string, string?>? SearchInAlbums; ...
1 vote
2 answers
221 views
Should selected person be part of my application layer? (MVP pattern)
Consider the following GUI screen: When user selects a person from PersonListView, EditPersonView should show person's first name and last name and allow the user edit. So, I end up with the ...
0 votes
2 answers
176 views
How to construct a model state dependent context menu in a MVP GUI application
Lets say I have a GUI application which tries to adhere to Model-View-Presenter (MVP) as best as possible. In this application I have a list box with items. One should be able to interact with these ...
-3 votes
1 answer
292 views
What is advantage of parameter-less methods?
MVP best practices recommend using parameter-less methods when view and presenter communicate. Even if using events, it is recommended not to use event parameters. It is recommended to change class ...
-6 votes
1 answer
126 views
Outsourcing The MVP development
our company wants to outsource the development of MVP. Since it is my first project as a product manager, I am expecting story map ERD Technical specifications i.e. language, database, DevOps & ...
1 vote
1 answer
248 views
Question on MVP Pattern, Events and saving complex objects
I'm working on a winforms project that involves 3d models, Opengl graphics, hierarchical project files and uses an MVP approach. Currently i have things setup such that when the user manipulates ...
1 vote
1 answer
415 views
How to inform presenters of sub views of a main window about global data change in an MVC or MVP GUI app?
Suppose I'am writting a GUI desktop application which has a main window with a corresponding presenter. This main windows may host one or multiple panels which each also have their own presenter. The ...