private void cargar_imagenes(ImageSet listaEj) { var ej1 = new[] { listaEj[0], listaEj[1], listaEj[2] }; ejemplos[0] = new Test_Ejemplo_MF(ej1, 1); var ej2 = new[] { listaEj[3], listaEj[4], listaEj[5] }; ejemplos[1] = new Test_Ejemplo_MF(ej2, 0); var ej3 = new[] { listaEj[6], listaEj[7], listaEj[8] }; ejemplos[2] = new Test_Ejemplo_MF(ej3, 2); }
private void St_ej() { this.EnCurso = true; int W = this.control.Width; int H = this.control.Height; int a = 2 * this.control.Width / 9; int b = 2 * this.control.Height / 9; Graphics g = control.CreateGraphics(); g.Clear(fondo); for (int i = 0; i < 3; i++) { actual_ej = ejemplos[i]; ejemplificando = true; //g.DrawString("(Entrenamiento) Oprima [Enter] para comenzar el examen", f, brush, 10, control.Height - 30); g.DrawImage(actual_ej.matriz[actual_ej.indice], 7 * W / 18, 7 * H / 18, a, b); Thread.Sleep(5000); g.FillRectangle(new SolidBrush(Color.DimGray), 0, 0, control.Width, control.Height - 50); ejemplificando = false; //g.DrawString("(Entrenamiento) Oprima [Enter] para comenzar el examen", f, brush, 10, control.Height - 30); g.DrawImage(actual_ej.matriz[0], W / 18, 7 * H / 18, a, b); g.DrawImage(actual_ej.matriz[1], 7 * W / 18, 7 * H / 18, a, b); g.DrawImage(actual_ej.matriz[2], 13 * W / 18, 7 * H / 18, a, b); Thread.Sleep(10000); g.FillRectangle(new SolidBrush(Color.DimGray), 0, 0, control.Width, control.Height - 50); Thread.Sleep(5000); } this.EnCurso = false; var font = new Font(FontFamily.GenericSansSerif, 25, FontStyle.Bold); Brush brush1 = new SolidBrush(Color.LightYellow); g.DrawString("Ha terminado el entrenamiento, presione [Esc]", font, brush1, 40, 30); }