/// <summary> /// Handles the change of the default style for loose keys. Sets the new styles and invokes the changed event. /// </summary> /// <param name="style">The new style.</param> private void looseKeys_SubStyleChanged(Keyboard.Styles.KeySubStyle style) { this.currentStyle.DefaultKeyStyle.Loose = style; this.StyleChanged?.Invoke(this.currentStyle); }
/// <summary> /// Handles the change of the default style for pressed keys. Sets the new styles and invokes the changed event. /// </summary> /// <param name="style">The new style.</param> private void pressedKeys_SubStyleChanged(Keyboard.Styles.KeySubStyle style) { this.currentStyle.DefaultKeyStyle.Pressed = style; this.StyleChanged?.Invoke(this.currentStyle); }