Question

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?

Was it helpful?

Solution

I usually do it as no.3 from the presenter tell the view to show the user a "long running operation" feedback... whatever that means for the view (wait cursor, message, etc.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top