I'm just learning WPF and design patterns at the same time. Now i'm creating some simple application using MVC pattern, which simulating some kind of schedule (with ability of editing it by user). And I'm guided by this great article. There are several Views (with its' own Controllers, naturally) in my app, which have a DataGrid for displaying schedule information from one Model. All these Views are of course should be independent from each other. The Model is a class that inherited from ObservableCollection<>. The question is: where it's better to initialize this Model to provide an ability for using it by these several Views at the same time? As a field of Application class? Or maybe in Application.Resources?
I know, that my question may be obvious for you, but it's not for me. So help please, if it's not a problem for you. :)
Aucun commentaire:
Enregistrer un commentaire