예제 #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics graphics = e.Graphics;

            _sign.Draw(graphics);
            _mole.Draw(graphics);

#if DEBUG
            const TextFormatFlags flags = TextFormatFlags.HorizontalCenter | TextFormatFlags.Top;
            Font font = new Font("Consolas", 12, FontStyle.Regular);
            TextRenderer.DrawText(graphics, $"X:{_curX} Y:{_curY}", font, new Rectangle(0, 0, Width, 30), SystemColors.ControlText, flags);
#endif
        }