public FormASCL(string codigoPaciente, int index, int index1, ImgSet.ImageSet imagen, int bloques, int estimulos, int visualizacion, int ocultamiento, int tecla_reaccion) { this.codigoPaciente = codigoPaciente; this.index = index; this.tecla_reaccion = tecla_reaccion; this.index1 = index1; this.imagen = imagen; this.bloques = bloques; this.estimulos = estimulos; this.visualizacion = visualizacion; this.ocultamiento = ocultamiento; this.tecla_reaccion = tecla_reaccion; this.asc = new Atencion_Sostenida_Compleja(null, index, index1, bloques, estimulos); InitializeComponent(); //Dimensiones de la pantalla Rectangle r = Screen.PrimaryScreen.Bounds; //Poniendo las dimensiones de la ventana //del tamaño de la pantalla this.Height = r.Height; this.Width = r.Width; int w = (this.Width - this.panel.Width) / 2; int h = (this.Height - this.panel.Height) / 2; //Posición del panel. this.panel.Top = h; this.panel.Left = w; timer.Interval = 1000; timer.Start(); }
public Vista_Previa_AS(Color colorFondo, ImgSet.ImageSet imagen, Control c) { visible = false; contador = 0; int x = c.Width; int y = c.Height; this.imagen = imagen; panel = new Panel { BackgroundImageLayout = ImageLayout.Stretch }; this.panel.Width = x / 3; this.panel.Height = y / 2; this.c = c; this.c.BackColor = colorFondo; this.panel.Location = new Point(x / 3, y / 4); this.c.Controls.Add(this.panel); prueba = new[] { 3, 7, 3, 6, 17, 12, 9, 10, 1, 14 }; t1 = new Timer { Interval = 500 }; t2 = new Timer { Interval = 1 }; t1.Tick += t1_tick; t2.Tick += t2_tick; this.t1.Start(); }
public FormASC( bool ensayo, string codigo_paciente, int index, int index1, ImgSet.ImageSet imagen, int bloques, int estimulos, int visualizacion, int ocultamiento, int tecla_reaccion, Color fondo, TypeOf_AS_Test tipo_estimulo ) { this.ensayo = ensayo; this.codigo_paciente = codigo_paciente; this.index = index; this.tecla_reaccion = tecla_reaccion; this.index1 = index1; this.imagen = imagen; this.bloques = bloques; this.estimulos = estimulos; this.visualizacion = visualizacion; this.ocultamiento = ocultamiento; this.tecla_reaccion = tecla_reaccion; this.tipo_estimulo = tipo_estimulo; this.asc = new Atencion_Sostenida_Compleja(null, index, index1, bloques, estimulos, imagen.Count); InitializeComponent(); this.BackColor = fondo; //Dimensiones de la pantalla Rectangle r = Screen.PrimaryScreen.Bounds; //Poniendo las dimensiones de la ventana //del tamaño de la pantalla this.Height = r.Height; this.Width = r.Width; int w = (this.Width - this.panel.Width) / 2; int h = (this.Height - this.panel.Height) / 2; //Posición del panel. this.panel.Top = h; this.panel.Left = w; //Posicion del label Feedback.Top = this.Height - 100; Feedback.Left = 100; Feedback.Font = new Font(FontFamily.GenericSansSerif, 30); Feedback.Hide(); timer.Interval = 1000; timer.Start(); }