示例#1
0
        public ProfileService(ILogger logger,
                              IPluginManagementService pluginManagementService,
                              IRgbService rgbService,
                              IConditionOperatorService conditionOperatorService,
                              IDataBindingService dataBindingService,
                              IProfileRepository profileRepository)
        {
            _logger = logger;
            _pluginManagementService = pluginManagementService;
            _rgbService        = rgbService;
            _profileRepository = profileRepository;

            _rgbService.LedsChanged += RgbServiceOnLedsChanged;
        }
示例#2
0
        internal ProfileService(ILogger logger,
                                IPluginService pluginService,
                                ISurfaceService surfaceService,
                                IConditionOperatorService conditionOperatorService,
                                IDataBindingService dataBindingService,
                                IProfileRepository profileRepository)
        {
            _logger            = logger;
            _pluginService     = pluginService;
            _surfaceService    = surfaceService;
            _profileRepository = profileRepository;

            _surfaceService.ActiveSurfaceConfigurationSelected += OnActiveSurfaceConfigurationSelected;
            _surfaceService.SurfaceConfigurationUpdated        += OnSurfaceConfigurationUpdated;
        }
        public DataBindingModifierViewModel(DataBindingModifier <TLayerProperty, TProperty> modifier,
                                            IDataBindingService dataBindingService,
                                            ISettingsService settingsService,
                                            IDataModelUIService dataModelUIService,
                                            IProfileEditorService profileEditorService)
        {
            _dataBindingService   = dataBindingService;
            _dataModelUIService   = dataModelUIService;
            _profileEditorService = profileEditorService;

            ShowDataModelValues = settingsService.GetSetting <bool>("ProfileEditor.ShowDataModelValues");

            Modifier = modifier;
            SelectModifierTypeCommand = new DelegateCommand(ExecuteSelectModifierTypeCommand);

            Update();
        }