示例#1
0
        public FormASSL(
            bool ensayo,
            string codigoPaciente,
            string imagen,
            int index,
            int bloques,
            int estimulos,
            int visualizacion,
            int ocultamiento,
            int tecla_reaccion,
            Color fondo, Color color_letra)
        {
            this.ensayo          = ensayo;
            this.codigo_paciente = codigoPaciente;
            this.imagen          = imagen;
            this.tecla_reaccion  = tecla_reaccion;
            this.bloques         = bloques;
            this.estimulos       = estimulos;
            this.visualizacion   = visualizacion;
            this.ocultamiento    = ocultamiento;
            this.color_letra     = color_letra;
            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;
            this.label.Width  = this.Width / 2;
            this.label.Height = this.Height / 2;
            int w = (this.Width - 180) / 2;
            int h = (this.Height - 180) / 2;

            //Posicion del label
            Feedback.Top  = this.Height - 100;
            Feedback.Left = 100;
            Feedback.Font = new Font(FontFamily.GenericSansSerif, 30);
            Feedback.Hide();
            this.label.TextAlign = ContentAlignment.BottomLeft;



            label.ForeColor = color_letra;
            //Posición del panel.
            this.label.Top         = h;
            this.label.Left        = w;
            ass                    = new Atencion_Sostenida_Simple(null, index, this.bloques, this.estimulos, imagen.Length);
            timer_muestra.Interval = 1000;
            timer_muestra.Start();
        }
示例#2
0
        public FormASS(
            bool ensayo,
            string codigoPaciente,
            ImgSet.ImageSet imagen,
            int index,
            int bloques,
            int estimulos,
            int visualizacion,
            int ocultamiento,
            int tecla_reaccion,
            Color fondo, TypeOf_AS_Test tipo_estimulo)
        {
            this.ensayo          = ensayo;
            this.codigo_paciente = codigoPaciente;
            this.imagen          = imagen;
            this.tecla_reaccion  = tecla_reaccion;
            this.bloques         = bloques;
            this.estimulos       = estimulos;
            this.visualizacion   = visualizacion;
            this.ocultamiento    = ocultamiento;
            this.tipo_estimulo   = tipo_estimulo;

            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();
            ass = new Atencion_Sostenida_Simple(null, index, this.bloques, this.estimulos, imagen.Count);
            timer_muestra.Interval = 1000;
            timer_muestra.Start();
        }