void FinishGame(int winnerPlayerNum) { Player2Timer.Stop(); Player1Timer.Stop(); MessageBox.Show("Winner: " + winnerPlayerNum.ToString() + ".Player", "End Game Window", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); }
private void StartGame() { Player1Timer.Interval = 1000; Player2Timer.Interval = 1000; prgrss_Player1.Value = 100; prgrss_Player2.Value = 100; Player1Timer.Start(); }
private void TimeRecorder() { if (Player1Timer.Enabled) { Player1Timer.Stop(); Player2Timer.Start(); } else { Player1Timer.Start(); Player2Timer.Stop(); } }