Bloom.Command.Bouncing C# (CSharp) Méthode

Bouncing() private static méthode

Check whether the click activating this command came too quickly to be a separate command. This handles people double-clicking when they should single click (or clicking again while a command is executing that takes longer than they think it should).
private static Bouncing ( ) : bool
Résultat bool
        private static bool Bouncing()
        {
            var now = DateTime.Now;
            var bouncing = now - _previousClickTime < _bounceWait;
            _previousClickTime = now;
            return bouncing;
        }