public MainViewModel( IDialogService dialogService, IHomeViewModel homeViewModel, IMembersViewModel membersViewModel, INavigationViewModel navigationViewModel, IEventAggregator eventAggregator, ILanguageService languageService, ISettingsViewModel settingsViewModel) { HomeViewModel = homeViewModel; NavigationViewModel = navigationViewModel; MembersViewModel = membersViewModel; SettingsViewModel = settingsViewModel; _dialogService = dialogService; _eventAggregator = eventAggregator; _languageService = languageService; _eventAggregator.GetEvent <BeforeNavigationEvent>() .Subscribe(OnBeforeNavigation); _languageService.Start(); }
public MembersView(IMembersViewModel viewModel) { InitializeComponent(); ViewModel = viewModel; }