/// <summary> /// Clears the panels and reloads the deck. /// </summary> void ResetDealer() { // Clear the panels pnlMain.Controls.Clear(); pnlPlayer1.Controls.Clear(); pnlPlayer2.Controls.Clear(); // Load the card dealer myDealer.LoadCardDealer(); // Set the image to a card back pbDeck.Image = (new PlayingCard()).GetCardImage(); // Display the number of cards remaining in the deck. lblCardCount.Text = myDealer.CardsRemaining.ToString(); }