Jump to content

mvp design pattern - question

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
piotr286

piotr286

    Newbie

  • Members
  • Pip
  • 2 posts
hi,

When I have a button which only changes something in my view (e.g. such that some text appears if I press it), can I write its whole code in the file with my view or should I include event handling of this button in the presenter? This is problem for me, because I don't know, if the presenter handles all events from the view or only these, which change something in the model?

Thanks in advance

#2
JCoder

JCoder

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 245 posts
If you are in trouble, solutions requiring less code are usually the best ones. So, if it is just a view thing and model is not read or modified, why bother the controller?