Пример #1
0
        public SolutionModeSwitchingViewModel(
            IConfigurationService configurationService,
            ISolutionSwitchingService solutionSwitchingService,
            IExceptionHandlingService exceptionHandler,
            IInformationConfigurationService informationConfigurationService,
            IThreadingService threadingService)
        {
            _configurationService     = configurationService;
            _solutionSwitchingService = solutionSwitchingService;
            _exceptionHandler         = exceptionHandler;
            _threadingService         = threadingService;
            DisplayName  = "Solution Mode Switching";
            Informations = new ObservableCollection <Information>();

            informationConfigurationService.RegisterForAllTypes(InformationReceived);
        }
Пример #2
0
        public ProjectBuildingViewModel(
            IInformationConfigurationService informationConfigurationService,
            IThreadingService threadingService,
            IConfigurationService configurationService,
            IProjectBuildingService projectBuildingService,
            IProjectBuildService projectBuildService,
            IExceptionHandlingService exceptionHandlingService)
        {
            _threadingService         = threadingService;
            _configurationService     = configurationService;
            _projectBuildingService   = projectBuildingService;
            _projectBuildService      = projectBuildService;
            _exceptionHandlingService = exceptionHandlingService;
            informationConfigurationService.RegisterForAllTypes(InformationReceived);

            Informations = new ObservableCollection <Information>();
            DisplayName  = "Project Building";
        }