This project has moved and is read-only. For the latest updates, please go here.

A single property in the view to setting up the customer

Apr 12, 2010 at 7:37 PM
Edited Apr 12, 2010 at 7:41 PM

The ICustomerView exposes many property related to the customer class:
string CompanyName { get; set; }
string ContactName { get; set; }
string ContactTitle { get; set; }
string Address { get; set; }
others...
each property is used to fill the related textbox of the view.
The presenter uses all this property to show the selected customer.
Why not use a single property Customer in the view?
In this way the presenter set only the view.Customer property.
Is it an error?
The current implementation give more granular control over the view but it requires more code :)