How do we bind a complexe data like Hierarchical data type in MVP Design pattern?
Many articles on net only shows binding of simple data type like. bool, int, string, IList<string> ... but If we need to bind a Hierarchical data model, how to achieve this?
For Example.
A Folder Structure : In WinForm can be mapped to TreeView Control.
What is the best data type that the IView must have to represent this and How will it update the tree view control.
What functionality(methods) Presenter will have both in terms of updateing View and Model.
will it have any logic for directly mapping model data to TreeView control this will again tightly bind Presenter with View as Presenter will have knowledge of view Control which is being used to display data
And also TreeView control is associated with WinForm, what if someone uses Custom/Third Party control? there might not be any "Nodes" to deal with!!!