Esempio n. 1
0
        private void UpdatePlayerNameLabels()
        {
            // Set the AIPlayer name
            this.AIPlayerNameLabel.Text = MyGame.Players[1].PlayerName.ToString() + " is " + MyGame.Players[1].Status.ToString() + "  Throwing: " + MyGame.Players[1].IsThrowing.ToString() + " (" + MyGame.Players[1].PlayerHand.PlayerHandDeck.Count.ToString() + ")";
            AIPlayerNameLabel.Refresh();
            // Set the Player Name
            this.PlayerNameLabel.Text = MyGame.Players[0].PlayerName.ToString() + " is " + MyGame.Players[0].Status.ToString() + "  Throwing: " + MyGame.Players[0].IsThrowing.ToString() + " (" + MyGame.Players[0].PlayerHand.PlayerHandDeck.Count.ToString() + ")";
            PlayerNameLabel.Refresh();

            // Deck card Count
            this.labelDeck.Text = "Deck (" + MyGame.Deck.PlayingCards.Count.ToString() + ")";
            labelDeck.Refresh();

            // River Cards Count
            this.RiverLabel.Text = "River (" + MyGame.River.RiverCards.Count.ToString() + ")";
            RiverLabel.Refresh();
        }
        void ReleaseDesignerOutlets()
        {
            if (AvatarImageView != null)
            {
                AvatarImageView.Dispose();
                AvatarImageView = null;
            }

            if (RankLabel != null)
            {
                RankLabel.Dispose();
                RankLabel = null;
            }

            if (PlayerNameLabel != null)
            {
                PlayerNameLabel.Dispose();
                PlayerNameLabel = null;
            }
        }