View update pattern
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hi all, For a MVC pattern, if the model have changes by another thread, how can it signal the view to reflect the change immediately ? What is the best pattern to use ?
Implement events on the business objects (Model) which your forms (View) should subscribe to. Whenever a business object is changed it should fire an event and whatever forms are interested in the change will be notified and can update itself. /Patric My C# blog: C# Coach
-
Implement events on the business objects (Model) which your forms (View) should subscribe to. Whenever a business object is changed it should fire an event and whatever forms are interested in the change will be notified and can update itself. /Patric My C# blog: C# Coach