Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            // Setup the event handlers.
            Application.ApplicationExit += OnApplicationExit;
            Paint      += new PaintEventHandler(DrawRegion_Paint);
            MouseClick += new MouseEventHandler(DrawRegion_MouseClick);

            // Enable double buffering.
            DoubleBuffered = true;

            // Initialize the game application.
            gameApp.Initialize();
        }