public void Handle(ActiveEffectChanged message) { if (_deviceManager.ActiveKeyboard != null && _effectManager.ActiveEffect != null) { _keyboardBitmap = _deviceManager.ActiveKeyboard.KeyboardBitmap(_effectManager.ActiveEffect.KeyboardScale); } }
public void Handle(ActiveEffectChanged message) { var effectDisplay = string.IsNullOrEmpty(message.ActiveEffect) ? message.ActiveEffect : "none"; ActiveEffectName = $"Active effect: {effectDisplay}"; }
private static void OnActiveEffectChanged(BoolEventArgs e) { _isEffectActiveEffectActive = e.Value; ActiveEffectChanged?.Invoke(null, e); }