예제 #1
0
 private void buttonAsk_Click(object sender, EventArgs e)
 {
     textProgress.Text = "";
     if (listHand.SelectedIndex < 0)
     {
         MessageBox.Show("Please select a card!", "Please select a card");
         return;
     }
     if (game.PlayOneRound(listHand.SelectedIndex))
     {
         textProgress.Text += "The winner is ... " + game.GetWinnerGame();
         textBooks.Text     = game.DiscribeBooks();
         buttonAsk.Enabled  = false;
     }
     else
     {
         UpdateForm();
     }
 }