Beispiel #1
0
 private void SetAnimationTimer()
 {
     _animationTimer.Tick += (sender, args) =>
     {
         var result = _model.NextTick(_currentKeys, _currentDirection, _time, _xPressed);
         if (!result)
         {
             Lose();
         }
     };
     _animationTimer.Tick += (sender, args) => Invalidate();
 }