(MVP Pattern) How to forward error messages from Presenter to View? -


I have a method where a user can search for an article number and if available in the database, then ArtCalnumber BindingList Now I want the user to know that the article is not available in the database. How can I do the right way?

Just pass the message error message in my interface method?

Presenter:

  string error message; _view.ErrorMessage (errorMessage);  

See:

  Public Zero Error Message (String Error Message) {Message Box. Show (error message); }  

Will you do the same?

That's what I do.

Another way to read what model I have to know is to show an error (perhaps by a ErrorMessagePresenter) then the error is different from the original presenter.

I have not really used it, for me, it always ends in the presenter and in implementing both interfaces.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -