private void RestartManager() { InitLeds(this.preferredMode, this.ledCount, this.reverseOrder); CurrentLEDModule = null; ProcessListenerService.Restart(); }
private void RestartManager(LightingMode preferredMode, int ledCount, bool reverseOrder) // TODO: Keep game state (i.e. league of legends cooldowns etc) { InitLeds(this.preferredMode, ledCount, reverseOrder); CurrentLEDModule = null; // restart the whole service (force module reload) ProcessListenerService.Restart(); }