Inheritance: IArtemisSettings
Exemple #1
0
        public EffectManager(ILogger logger, DeviceManager deviceManager)
        {
            EffectModels = new List<EffectModel>();

            _generalSettings = DAL.SettingsProvider.Load<GeneralSettings>();
            _logger = logger;
            _deviceManager = deviceManager;

            _logger.Info("Intialized EffectManager");
        }
Exemple #2
0
 public G910()
 {
     Name = "Logitech G910 RGB";
     Slug = "logitech-g910";
     CantEnableText = "Couldn't connect to your Logitech G910.\n" +
                      "Please check your cables and updating the Logitech Gaming Software\n" +
                      "A minimum version of 8.81.15 is required.\n\n" +
                      "If needed, you can select a different keyboard in Artemis under settings.";
     Height = 7;
     Width = 22;
     PreviewSettings = new PreviewSettings(570, 175, new Thickness(-10, -105, 0, 0), Resources.g910);
     _generalSettings = SettingsProvider.Load<GeneralSettings>();
 }
Exemple #3
0
        public DeviceManager(ILogger logger, List<DeviceProvider> deviceProviders)
        {
            _logger = logger;
            _generalSettings = SettingsProvider.Load<GeneralSettings>();

            KeyboardProviders = deviceProviders.Where(d => d.Type == DeviceType.Keyboard)
                .Cast<KeyboardProvider>().ToList();
            MiceProviders = deviceProviders.Where(d => d.Type == DeviceType.Mouse).ToList();
            HeadsetProviders = deviceProviders.Where(d => d.Type == DeviceType.Headset).ToList();
            GenericProviders = deviceProviders.Where(d => d.Type == DeviceType.Generic).ToList();
            MousematProviders = deviceProviders.Where(d => d.Type == DeviceType.Mousemat).ToList();

            _logger.Info("Intialized DeviceManager with {0} device providers", deviceProviders.Count);
        }
Exemple #4
0
        public ProfileManager(ILogger logger, EffectManager effectManager, DeviceManager deviceManager,
            LoopManager loopManager)
        {
            _logger = logger;
            _effectManager = effectManager;
            _deviceManager = deviceManager;
            _loopManager = loopManager;
            _generalSettings = SettingsProvider.Load<GeneralSettings>();

            GameViewModels = new List<GameViewModel>();

            var profilePreviewTimer = new Timer(500);
            profilePreviewTimer.Elapsed += SetupProfilePreview;
            profilePreviewTimer.Start();

            _logger.Info("Intialized ProfileManager");
        }