/// <summary> /// Method created for when cards are dealt /// Deal card animation is initiated /// cards are dealt /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnDealCards(object sender, RoutedEventArgs e) { if (rotating) { rotation.Stop(); rotating = false; } DealCardsAnimation(); // Deal the cards _game.DealCards(); // Clear hint _txtHint.Text = ""; // Disable the Deal Cards button _btnDealCards.IsEnabled = false; // Enable the Flip Cards button _btnFlipCards.IsEnabled = true; }