Пример #1
0
        public ViewNavigator(p.IRegionManager regionManager, IDialogs dialogs, IFormsManager formsManager, IInfrastructureEventAggregator eventAggregator)
        {
            _RegionManager = regionManager;
            _Dialogs = dialogs;
            _FormsManager = formsManager;
            _EventAggregator = eventAggregator;

            _RegionActiveViewModels = new Dictionary<string, HashSet<INavigationAware>>();
            _DisposableViewStates = new Dictionary<object, IDisposable>();
            KeptAliveRegions = new HashSet<string>();

            _EventAggregator.Subscribe<IApplicationExitRequestEvent>(ApplicationExitRequested);
            _EventAggregator.Subscribe<IStartupNotificationsRequestEvent>(args => _IsProcessingNotifications = true);
            _EventAggregator.Subscribe<IStartupNotificationsProcessedEvent>(args => 
                {
                    _IsProcessingNotifications = false;
                    _NotificationsProcessed = true;
                    ProcessUIWorkQueue();
                });
        }
Пример #2
0
 public InitializeDisplyView(IRegionManager regionManager)
 {
     _regionManager = regionManager;
 }