Exemplo n.º 1
0
        public HomeManagerNavigationViewModel(IAsyncEventAggregator eventAggregator)
        {
            eventAggregator.NullGuard();

            _eventAggregator = eventAggregator;

            NavigateCommand = AsyncCommandBuilder.Create(NavigateCalled);
        }
Exemplo n.º 2
0
        public BooksNavigationViewModel(IAsyncEventAggregator eventAggregator)
        {
            eventAggregator.NullGuard();

            _eventAggregator = eventAggregator;

            NavigateToWorkspaceCommand = AsyncCommandBuilder.Create(NavigateCalled);
        }
Exemplo n.º 3
0
        public ShellViewModel(IRegionNavigationAdapter navigationAdapter, IAsyncEventAggregator eventAggregator)
        {
            navigationAdapter.NullGuard();
            eventAggregator.NullGuard();

            eventAggregator.GetEvent <ModuleChangingEvent>().SubcribeAsync(
                type =>
            {
                return(navigationAdapter.RequestWorkspaceNavigationAsync(type.Value.FullName));
            });
        }