Ejemplo n.º 1
0
 /// <summary>
 /// Invokes event that says no key was pressed and what is actual reading position.
 /// </summary>
 /// <param name="position">actual reading position</param>
 protected virtual void OnKeyNotPressed(int position)
 {
     PressedKey?.Invoke(this, new PressedKeyEventArgs(position));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Invokes event that says which key was pressed and what is actual reading position.
 /// </summary>
 /// <param name="key">pressed key</param>
 /// <param name="position">actual reading position</param>
 protected virtual void OnKeyPressed(char key, int position)
 {
     PressedKey?.Invoke(this, new PressedKeyEventArgs(key, position));
 }