示例#1
0
 /// <summary>
 /// Handles change of the pressed style, sets the new style and invokes the changed event.
 /// </summary>
 /// <param name="style">The new style.</param>
 private void pressedKeys_SubStyleChanged(Keyboard.Styles.KeySubStyle style)
 {
     this.currentStyle.Pressed = style;
     this.StyleChanged?.Invoke(this.currentStyle);
 }
示例#2
0
 /// <summary>
 /// Handles change of the loose style, sets the new style and invokes the changed event.
 /// </summary>
 /// <param name="style">The new style.</param>
 private void looseKeys_SubStyleChanged(Keyboard.Styles.KeySubStyle style)
 {
     this.currentStyle.Loose = style;
     this.StyleChanged?.Invoke(this.currentStyle);
 }