Exemple #1
0
        public MusariumViewModel(IMusariumView view, IMuseumDeveloperViewModel museumDeveloperViewModel,
                                 IMuseumEditingViewModel museumEditingViewModel, IAddEditViewModel addEditViewModel)
        {
            this.MuseumDeveloper = museumDeveloperViewModel;
            this.AddEditQuest    = addEditViewModel;
            this.MuseumEditing   = museumEditingViewModel;
            this.View            = view;
            view.BindDataContext(this);

            this.View.SetFramesContent(this.MuseumDeveloper.View, this.MuseumEditing.View, this.AddEditQuest.View);
        }
 public void BindDataContext(IMuseumEditingViewModel viewModel)
 {
     this.DataContext = viewModel;
 }