Exemplo n.º 1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            if (!_timer.Enabled)
            {
                _map.DrawRandom(e.Graphics);
                _map.DrawNext(e.Graphics, new Piece(), BackColor);
                return;
            }

            _map.Draw(e.Graphics);
            _map.DrawNext(e.Graphics, _nextPiece, BackColor);
            _map.DrawPiece(e.Graphics, _currPiece);
        }