/// <summary> /// Function that sets up the ui of the playerhand when first summoned including adding the players name /// score currently active card and score to the interface. /// </summary> public void SetUpHandUI() { lblPlayerName.Text = myplayer.Name; lblNumOfCard.Text = myplayer.MyHand.Cards.Count.ToString(); lblRemainingDraws.Text = myplayer.DrawsLeft.ToString(); lblScore.Text = myplayer.MyHand.Score.ToString(); lblVictories.Text = myplayer.Victories.ToString(); if (myplayer.MyHand.Cards.Count > 0) { playerCard.Image = mycardimages.CardImage(myplayer.MyHand.AktiveCard.ToString()); } }
/// <summary> /// Method to update the graphical interface of the gameboard /// </summary> public void UpdateGameBoard() { DealerCard.Image = cardImg.CardImage(game.Betty.DealCard.ToString()); lbldealerScore.Text = game.Betty.DealScore.ToString(); }