예제 #1
0
 /// <summary>
 /// Вызывается при нажатии клавиши на контроле.
 /// </summary>
 private void BindedModelOnPressKey(object sender, PressKeyEventArgs pressKeyEventArgs)
 {
     if (pressKeyEventArgs.Key == Key.Enter)
     {
         _tabControlManager.Next();
     } //if
 }
예제 #2
0
파일: Game.cs 프로젝트: xkovalak/Piano_hero
 public void OnKeyNotPressed(object source, PressKeyEventArgs args)
 {
     if (args.ActualKey != ' ')
     {
         _score--;
     }
 }
 private void NameBoxOnPressKey(object sender, PressKeyEventArgs pressKeyEventArgs)
 {
     if (pressKeyEventArgs.Key == Key.Enter)
     {
         StartUpdateOrderList(1);
     }
 }