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(IAddEditViewModel viewModel) { this.DataContext = viewModel; }