Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     Lbl_Player1CardsInHand.Text = "";
     Lbl_Player2CardsInHand.Text = "";
     label4.Hide();
     label5.Hide();
     Lbl_Player1CardsInHand.Hide();
     Lbl_Player2CardsInHand.Hide();
     Lbl_Player1CardsInPlay.Text = "";
     Lbl_Player2CardsInPlay.Text = "";
     // Cannot flip unless shuffled first.
     btnFlip.Enabled = false;
 }
Exemplo n.º 2
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     // See each player's cards or not.
     if (checkBox1.Checked)
     {
         label4.Show();
         label5.Show();
         Lbl_Player1CardsInHand.Show();
         Lbl_Player2CardsInHand.Show();
     }
     else
     {
         label4.Hide();
         label5.Hide();
         Lbl_Player1CardsInHand.Hide();
         Lbl_Player2CardsInHand.Hide();
     }
 }