Пример #1
0
        public void Initialize()
        {
            if (policyWindowService == null)
            {
                regionManager.RegisterViewWithRegion(
                    Application.Shell.Contracts.Shell.RegionNames.MAIN_WINDOW_NAVIGATION_REGION,
                    () => serviceLocator.GetInstance <PolicyWindowMenuView>());



                policyWindowService = serviceLocator.GetInstance <IPolicyWindowService>();
            }
        }
Пример #2
0
        public PolicySearchController(IEventAggregator eventAggregator, IPolicyWindowService policyWindowService)
        {
            if (eventAggregator == null)
            {
                throw new ArgumentNullException("eventAggregator");
            }
            if (policyWindowService == null)
            {
                throw new ArgumentNullException("policyWindowService");
            }

            this.eventAggregator     = eventAggregator;
            this.policyWindowService = policyWindowService;

            this.eventAggregator.GetEvent <PolicySearchFoundResultEvent>().Subscribe(this.PolicySearchFoundResult, true);
            this.eventAggregator.GetEvent <PolicySearchSelectedEvent>().Subscribe(this.OpenPolicyWindow, true);
        }