where to set wait cursor in long operation in MVP pattern?

Posted by Benny on Stack Overflow See other posts from Stack Overflow or by Benny
Published on 2010-03-30T10:09:43Z Indexed on 2010/03/30 10:13 UTC
Read the original article Hit count: 461

Filed under:
|

For a long operation that will be executed in presenter, where to set the wait cursor?

  1. in View? the view shouldn't know too much about business logic, it is passive.
  2. in presenter? seems odd in presenter to call UI code.
  3. add method to View interface, like SetWait(bool), and call it in presenter?

So what do you think?

© Stack Overflow or respective owner

Related posts about mvp

Related posts about long