Пример #1
0
 /// <summary>
 /// Key Up
 /// </summary>
 public void OnKeyUp(KeyEventArgs e)
 {
     if (_currentCmd != null)
     {
         Command.EventResult eRet = _currentCmd.OnKeyUp(e);
     }
 }
Пример #2
0
 /// <summary>
 /// Key Down
 /// </summary>
 public void OnKeyDown(KeyEventArgs e)
 {
     if (_currentCmd != null)
     {
         Command.EventResult eRet = _currentCmd.OnKeyDown(e);
         if (eRet.status == Command.EventResultStatus.Unhandled)
         {
             if (e.KeyCode == Keys.Escape)
             {
                 this.CancelCurrentCommand();
             }
         }
     }
 }