Пример #1
0
 protected override void Configure()
 {
     CustomContainer.Register <IWindowManager>(new WindowManager());
     CustomContainer.Register <IDockAwareWindowManager>(new XamDockManagerDockAwareWindowManager());
     CustomContainer.Register <ISystemInfoService>(new SystemInfoService());
     CustomContainer.Register <IPopupController>(new PopupController());
     CustomContainer.Register <IMainViewModel>(new MainViewModel());
     CustomContainer.Register <IWindowsServiceManager>(new WindowsServiceManager());
     CustomContainer.Register <IDialogViewModelFactory>(new DialogViewModelFactory());
     ClassRoutedEventHandlers.RegisterEvents();
 }
Пример #2
0
 protected override void Configure()
 {
     CustomContainer.Register <IWindowManager>(new WindowManager());
     CustomContainer.Register <IDockAwareWindowManager>(new XamDockManagerDockAwareWindowManager());
     CustomContainer.Register <ISystemInfoService>(new SystemInfoService());
     CustomContainer.Register <IFeedBackRecorder>(new FeedbackRecorder());
     CustomContainer.Register <IPopupController>(new PopupController());
     CustomContainer.Register <IFeedbackInvoker>(new FeedbackInvoker());
     CustomContainer.Register <IMainViewModel>(new MainViewModel());
     CustomContainer.Register <IWindowsServiceManager>(new WindowsServiceManager());
     ClassRoutedEventHandlers.RegisterEvents();
 }
Пример #3
0
        protected override void Configure()
        {
            CustomContainer.Register <IWindowManager>(new WindowManager());
            CustomContainer.Register <IPopupController>(new PopupController());
            _mainViewModel = new ShellViewModel();
            CustomContainer.Register <IShellViewModel>(_mainViewModel);
            CustomContainer.Register <IShellViewModel>(_mainViewModel);
            CustomContainer.Register <IWindowsServiceManager>(new WindowsServiceManager());
            var conn = new ServerProxy("http://localHost:3142", CredentialCache.DefaultNetworkCredentials, new AsyncWorker());

            conn.Connect(Guid.NewGuid());
            CustomContainer.Register <Microsoft.Practices.Prism.PubSubEvents.IEventAggregator>(new Microsoft.Practices.Prism.PubSubEvents.EventAggregator());

            ClassRoutedEventHandlers.RegisterEvents();
        }