private void IsGameOver_Tick(object sender, EventArgs e) { if (Game.GameOver() == true) { IsGameOver.Stop(); const string message = "Вы проиграли. Хотите начать заново?"; const string caption = "Сообщение"; var result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { Game.Refresh(); PaintGame(Game.GetAll()); AddGun(Game.GetFishinGun(), getColumn); label1.Text = Convert.ToString("Счёт: " + Game.GetScore()); IsGameOver.Start(); } else { this.MouseClick -= GameForm_MouseClick; IsGameOver.Stop(); AddFishTimer.Stop(); AddTimer.Stop(); stop = true; } } }