private void button13_Click(object sender, EventArgs e) { betamt = Convert.ToInt32(textBox1.Text); if (money.GetTotalMoney() > 0) { if (betamt > money.GetTotalMoney()) { DialogResult dialogResult = MessageBox.Show("You Have Insufficient funds, would you like to add funds?", "Houston we have a problem!", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { money.resetFunds(); label19.Text = money.GetTotalMoney().ToString(); } else if (dialogResult == DialogResult.No) { DialogResult dialogResult2 = MessageBox.Show("Would you like to exit the game?", "What would you like to do?", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Application.Exit(); } else if (dialogResult == DialogResult.No) { } } } else { money.SetBetAmount(betamt); money.GetBetAmount(); money.currentPot(); label19.Text = money.GetTotalMoney().ToString(); label22.Text = money.setPot().ToString(); } } else { DialogResult dialogResult = MessageBox.Show("You Have Insufficient funds, would you like to add funds?", "Houston we have a problem!", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { money.resetFunds(); label19.Text = money.GetTotalMoney().ToString(); } else if (dialogResult == DialogResult.No) { DialogResult dialogResult2 = MessageBox.Show("Would you like to exit the game?", "What would you like to do?", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Application.Exit(); } else if (dialogResult == DialogResult.No) { } } } }