private void resetDeckContent(int totalDecks = 1) { deckContent = new List <string>(); for (int deck = 0; deck < totalDecks; deck++) { for (int card = 0; card < 52; card++) { deckContent.Add(CardUtilities.convertToStringCard(card)); } } }
/// <summary> /// Does exactly what the name implies: it updates the apperance of the 5 hand card labels to reflect what the user is holding /// </summary> private void updateHandDisplay() { //a safety check if (handCards == null) { handCards = new List <int> { -1, -1, -1, -1, -1 } } ; for (int i = 0; i < handLabels.Count; i++) { handLabels[i].Content = CardUtilities.convertToStringCard(handCards[i]); handLabels[i].Foreground = new SolidColorBrush(getCardColour(handCards[i])); } }