private void OnButtonClick()

in Games/Memory/GamePage.xaml.cs [522:558]


        private void OnButtonClick(object sender, RoutedEventArgs e)
        {
            if (_animationActive || _reverseAnimationActive || _interactionPaused) return;

            if (_gameOver)
            {                
                return;
            }

            var btn = sender as Button;
            if (btn.Content != null)
            {             
                return;
            }          

            if (_flashTimer.IsEnabled)
            {
                return;
                //OnFlashTimerTick(null, null);  //Unclear about the original idea of this
            }

            _animationActive = true;
            _numMoves++;
            MoveCountTextBlock.Text = _numMoves.ToString();

            if (_firstButton == null)
            {
                _firstButton = btn;
            }
            else
            {
                _secondButton = btn;
            }

            FlipCardFaceUp(btn);

        }