Ejemplo n.º 1
0
 private void buttonAsk_Click(object sender, EventArgs e)
 {
     textProgress.Text = "";
     if (listHand.SelectedIndex < 0)
     {
         MessageBox.Show("Please select a card");
         return;
     }
     if (game.PlayOneRound(listHand.SelectedIndex))
     {
         textProgress.Text += "The winner is..." + game.GetWinnerName();
         textBooks.Text     = game.DescribeBooks();
         buttonAsk.Enabled  = false;
     }
     else
     {
         UpdateForm();
     }
 }