Exemplo n.º 1
0
 private static void timer_KeyPressedEvent(object sender, KeyEventsArgs e)
 {
     if (e.PressedKey == 's')
     {
         timer.Stop();
     }
 }
Exemplo n.º 2
0
        protected void OnKeyPressedEvent(KeyEventsArgs e)
        {
            KeyPressedEventHandler handler = this.KeyPressedEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }