else { cash = cash - 1; num1 = RndNumber.Next(0, 7); num2 = RndNumber.Next(0, 7); num3 = RndNumber.Next(0, 7); btnOne.Text = num1.ToString(); btnTwo.Text = num2.ToString(); btnThree.Text = num3.ToString(); if ((btnOne.Text == btnTwo.Text) && (btnTwo.Text == btnThree.Text)) { cash++; numofWins++; textBox1.Text = numofWins.ToString(); MessageBox.Show("Congrats! you win"); return; } }
nomofWins
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)