private void spadesButton_Click(object sender, EventArgs e) { if (Bidding.FaceCardSuit() == Suit.Spades) { MessageBox.Show("Spades was turned down already! Pick another trump suit."); } else { Bidding.BidActive = false; this.Close(); } }
public Form2() { InitializeComponent(); if (Bidding.PassCount > 3) { orderUpButton.Visible = false; clubsButton.Visible = true; diamondsButton.Visible = true; spadesButton.Visible = true; heartsButton.Visible = true; clubsButton.Image = images[49]; diamondsButton.Image = images[50]; spadesButton.Image = images[51]; heartsButton.Image = images[52]; if (Bidding.FaceCardSuit() == Suit.Clubs) { clubsButton.Image = images[53]; } else if (Bidding.FaceCardSuit() == Suit.Diamonds) { diamondsButton.Image = images[54]; } else if (Bidding.FaceCardSuit() == Suit.Spades) { spadesButton.Image = images[55]; } else if (Bidding.FaceCardSuit() == Suit.Hearts) { heartsButton.Image = images[56]; } } }