private void BetInputEnterKey(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { e.Handled = true; DoneButton.PerformClick(); } }
}//End PlusLabel //Method For Timer private void RoundTimer_Tick(object sender, EventArgs e) { //If Time Remaining Is Not 0 Keep Ticking Down //Else Print 'Out Of Time Error' if (rtime != 0) { rtime = rtime - 1; RTimeLabel.Text = rtime + " Seconds"; } else { RoundTimer.Stop(); RTimeLabel.Text = "Out Of Time!"; MessageBox.Show("You Did Not Finish In The Time Allowed!", "Too Bad!"); DoneButton.PerformClick(); }//End If Else //Make Time Label Red If 10 Seconds Or Less Are Left if (rtime <= 10) { RTimeLabel.BackColor = Color.Red; } //End If } //End Round Timer