private void btnDeal_Click(object sender, EventArgs e) { this.Controls.Clear(); this.InitializeComponent(); lblPot.Parent = pbTable; lblPot.BackColor = Color.Transparent; string sb = Table.SmallBlindSize.ToString(); string bb = Table.BigBlindSize.ToString(); double sbDouble = 0; double bbDouble = 0; double.TryParse(bb, out bbDouble); double.TryParse(sb, out sbDouble); bbDouble = bbDouble + sbDouble; lblPot.Text = bbDouble.ToString(); lbCards.Items.AddRange(Dealer.dealersDeck); if (Table.Turns == 0) { Dealer.ChoseDealer(); } Dealer.DealCardsPlayers(); for (int i = 0; i < Player.players.Length; i++) { if (Player.players[i] != null) { listBoxPlayers.Items.Add(Player.players[i].UserName); } } ShowDealtCards(); }
private void btnShuffle_Click(object sender, EventArgs e) { Dealer.ShuffleDeck(); }