Example #1
0
        private void pauseBarItem_Click(object sender, EventArgs e)
        {
            gameTimer.Stop();

            if (game.IsGameRunning)
            {
                game.PauseGame();
            }
            else
            {
                game.ResumeGame();
                gameTimer.Start();
            }

            gridBoard.Invalidate();
            gridBoard.Update();
            nextPieceForm.ForceUpdate();

            SetPauseBarItemStatus();
        }