private void BetButton_Click(object sender, RoutedEventArgs e) { int bet = 0; if (((Button)sender).Content.ToString() == "$1") { bet = 1; } else if (((Button)sender).Content.ToString() == "$5") { bet = 5; } else if (((Button)sender).Content.ToString() == "$10") { bet = 10; } string playerName = GetCurrentPlayerName(); PlayerBankDisplays[playerTurn].Content = $"${BlackJackController.PlayerBet(playerName, bet)}"; HitButton.Visibility = Visibility.Visible; StandButton.Visibility = Visibility.Visible; if (BlackJackController.CanDoubleDown(playerName)) { DoubleDownButton.Visibility = Visibility.Visible; } SplitButton.Visibility = Visibility.Hidden; HitButton.IsEnabled = true; DoubleDownButton.IsEnabled = true; StandButton.IsEnabled = true; SplitButton.IsEnabled = true; D1Button.Visibility = Visibility.Hidden; D5Button.Visibility = Visibility.Hidden; D10Button.Visibility = Visibility.Hidden; DisplayCurrentHand(); PlayerTotalDisplays[playerTurn].Content = $":{BlackJackController.GetTotal(GetCurrentPlayerName(), false)}"; }