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