public VolumeBar(DeviceManager deviceManager, VolumeDisplaySettings settings) { _deviceManager = deviceManager; Settings = settings; Transparancy = 255; Scale = 4; }
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!"); }
public EffectManager(ILogger logger, DeviceManager deviceManager) { EffectModels = new List<EffectModel>(); _generalSettings = DAL.SettingsProvider.Load<GeneralSettings>(); _logger = logger; _deviceManager = deviceManager; _logger.Info("Intialized EffectManager"); }
public ProfileViewModel(DeviceManager deviceManager) { _deviceManager = deviceManager; PreviewTimer = new Timer(40); ShowAll = false; PreviewTimer.Elapsed += InvokeUpdateKeyboardPreview; deviceManager.OnKeyboardChangedEvent += DeviceManagerOnOnKeyboardChangedEvent; }
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"); }
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"); }