Пример #1
0
        public ShellViewModel(IRegionNavigationAdapter navigationAdapter, IAsyncEventAggregator eventAggregator)
        {
            navigationAdapter.NullGuard();
            eventAggregator.NullGuard();

            eventAggregator.GetEvent <ModuleChangingEvent>().SubcribeAsync(
                type =>
            {
                return(navigationAdapter.RequestWorkspaceNavigationAsync(type.Value.FullName));
            });
        }
Пример #2
0
 private async Task NavigateCalled(object parameter)
 {
     await _eventAggregator.GetEvent <ModuleChangingEvent>().PublishAsync(new DataEventArgs <Type>((Type)parameter));
 }