Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public MembersView(IMembersViewModel viewModel)
 {
     InitializeComponent();
     ViewModel = viewModel;
 }
 public MembersView(IMembersViewModel viewModel)
 {
     InitializeComponent();
     ViewModel = viewModel;
 }