private void UpdateForm() { cards.Items.Clear(); foreach (string cardName in game.GetPlayerCardNames()) { cards.Items.Add(cardName); } gameBooks.Content = game.DescribeBooks(); gameProgress.Content += game.DescribePlayerHands() + Environment.NewLine; gameProgress.ScrollToEnd(); }
private void UpdateForm() { listHand.Items.Clear(); foreach (String cardName in game.GetPlayerCardNames()) { listHand.Items.Add(cardName); } textBooks.Text = game.DescribeBooks(); textProgress.Text += game.DescribePlayerHands(); textProgress.SelectionStart = textProgress.Text.Length; textProgress.ScrollToCaret(); }