Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;

            coordenadasProvider.RegistrarHandler(EventType.CoordenadasBitmap, new FrameEventHandler(CoordenadasImg));
            coordenadasProvider.RegistrarHandler(EventType.CoordenadasTexto, new TextEventHandler(coordenadasText));
            aventuraProvider.RegistrarHandler(EventType.AventuraBitmap, new FrameEventHandler(CoordenadasImg));
            aventuraProvider.RegistrarHandler(EventType.AventuraTexto, new TextEventHandler(coordenadasText));
            statsProvider.RegistrarHandler(EventType.StatsBitmap, new FrameEventHandler(VidaImg));
            objetivoProvider.RegistrarHandler(EventType.ObjetivoBitmap, new FrameEventHandler(VidaImg));
            piedraProvider.RegistrarHandler(EventType.PiedraBitmap, new FrameEventHandler(pictureBox1));
        }