I have a method in which the user can search for the article number, and if it is available in the database, the articlenumber is bound to a BindingList. Now I want to tell the user if there is an article in the database. How do I do it right?
Just pass the errorMessage message to my interface method?
Leading:
string errorMessage;
_view.ErrorMessage(errorMessage);
View:
public void ErrorMessage(string errorMessage)
{
MessageBox.Show(errorMessage);
}
Would you do it the same way?
source
share