Manages the keyboard providers
示例#1
0
 public VolumeBar(DeviceManager deviceManager, VolumeDisplaySettings settings)
 {
     _deviceManager = deviceManager;
     Settings = settings;
     Transparancy = 255;
     Scale = 4;
 }
示例#2
0
        public MainManager(ILogger logger, LoopManager loopManager, DeviceManager deviceManager,
            EffectManager effectManager, ProfileManager profileManager, PipeServer pipeServer)
        {
            Logger = logger;
            LoopManager = loopManager;
            DeviceManager = deviceManager;
            EffectManager = effectManager;
            ProfileManager = profileManager;
            PipeServer = pipeServer;

            _processTimer = new Timer(1000);
            _processTimer.Elapsed += ScanProcesses;
            _processTimer.Start();

            ProgramEnabled = false;
            Running = false;

            // Create and start the web server
            GameStateWebServer = new GameStateWebServer(logger);
            GameStateWebServer.Start();

            // Start the named pipe
            PipeServer.Start("artemis");

            // Start the update task
            var updateTask = new Task(Updater.UpdateApp);
            updateTask.Start();

            Logger.Info("Intialized MainManager");
            Logger.Info($"Artemis version {Assembly.GetExecutingAssembly().GetName().Version} is ready!");
        }
示例#3
0
        public EffectManager(ILogger logger, DeviceManager deviceManager)
        {
            EffectModels = new List<EffectModel>();

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

            _logger.Info("Intialized EffectManager");
        }
示例#4
0
        public ProfileViewModel(DeviceManager deviceManager)
        {
            _deviceManager = deviceManager;

            PreviewTimer = new Timer(40);
            ShowAll = false;

            PreviewTimer.Elapsed += InvokeUpdateKeyboardPreview;
            deviceManager.OnKeyboardChangedEvent += DeviceManagerOnOnKeyboardChangedEvent;
        }
示例#5
0
        public LoopManager(ILogger logger, EffectManager effectManager, DeviceManager deviceManager)
        {
            _logger = logger;
            _effectManager = effectManager;
            _deviceManager = deviceManager;

            // Setup timers
            _loopTimer = new Timer(40);
            _loopTimer.Elapsed += Render;
            _loopTimer.Start();

            _logger.Info("Intialized LoopManager");
        }
示例#6
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");
        }