コード例 #1
0
ファイル: DeckExplorer.cs プロジェクト: mattlennon3/Card-Deal
        private void UpdateCardDataDisplay(Card newSelectedCard)
        {
            cardHeader.Text = newSelectedCard.ToFullString();

            dataCardName.Text   = newSelectedCard.ToFullString();
            dataCardSuit.Text   = newSelectedCard.SuitToString();
            dataCardValue.Text  = newSelectedCard.ValueToString();
            dataCardPlayed.Text = newSelectedCard.GetPlayed().ToString();

            dataCardName.Visible   = true;
            dataCardSuit.Visible   = true;
            dataCardValue.Visible  = true;
            dataCardPlayed.Visible = true;
        }
コード例 #2
0
 public void RecieveCard(Card card)
 {
     this.playerHand.RecieveCard(card);
     Console.WriteLine(playerName + " has recieved " + card.ToFullString());
 }