Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of all, you should decide for one pattern:</p> <ul> <li>Supervising Controller is appropriate if you want to leverage data binding and if a tool for automated view tests is available</li> <li>Passive View is indicated if your view data becomes more complex or if you have to rely on pure unit tests for the complete view</li> <li>Presentation Model (also known as Model View ViewModel) is ideal if you need easy access to the complete view state and if you have code generation available</li> </ul> <p>I have collected <a href="http://enterprise-it-solutions.blogspot.com/2012/01/supervising-controller-design-pattern.html" rel="nofollow noreferrer">all aspects as well as links to useful considerations and examples</a>.</p> <p>In either case, you should define a <code>PeopleModel</code> and let <code>PeopleViewImplementation</code> reference <code>PeopleModel</code>. This clearly separates the model from the view.</p> <p>When it comes to collections, Supervising Controller can rely on the data binding of a list to the <code>DataGridView</code>. See <a href="https://stackoverflow.com/questions/125109/winforms-datagridview-binding-to-a-listt">winForms + DataGridView binding to a List</a>. Only Passive View and Presentation Model require additional code for mapping the list to the view fields respectively to the Presentation Model. </p> <p>Secondly, the data mapping should be clarified: Should <code>PeopleView</code> show a list of persons or a list of several peoples? The <code>DataGridView</code> can either display one person per row or one people per row. If one person is displayed per row, the treatment of the people could be achieved in one of the following ways, for example:</p> <ul> <li>Show all persons of one people on one page and add a pager element to navigate between different peoples</li> <li>Show all persons of one people in the data grid and add a selection widget for the people, e.g. a tree with all peoples</li> <li>Mix persons of different peoples in the data grid and add a column to display the people of each person</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload