private void comboBoxPrueba_SelectedIndexChanged(object sender, EventArgs e) { this.panelPreView.BackColor = Color.DimGray; if (!this.comboBoxPrueba.Enabled) { return; } #region Cerrar vista previa try { this.ap.Cerrar_Vista_Previa(); } catch (Exception) { MessageBox.Show(Resources.MSG_Error_ClosingPreview); return; } #endregion string codigo = string.Empty; if (this.comboBoxPrueba.Text == Resources.ComboValue_MF) { codigo = string.Empty;// Resources.TESTCODE_MF; Configuracion_Memoria_Figuras(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_MF(this.panelPreView, ap.Configuracion.Imagenes_MF); } } else if (this.comboBoxPrueba.Text == Resources.ComboValue_PVA || this.comboBoxPrueba.Text == Resources.ComboValue_PVA2) { codigo = this.comboBoxPrueba.Text == Resources.ComboValue_PVA ? Resources.TESTCODE_PVA1 : Resources.TESTCODE_PVA2; Configuracion_Pares_Visuales(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_PVA(this.panelPreView, ap.Configuracion.Colores_PVA, ap.Configuracion.Imagenes_PVA); } } else if (this.comboBoxPrueba.Text == Resources.ComboValue_AM) { codigo = Resources.TESTCODE_AM; Configuracion_Amplitud_Memoria(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_AM(this.panelPreView); } } else if (this.comboBoxPrueba.Text == Resources.ComboValue_RL) { codigo = Resources.TESTCODE_RL; Configuracion_Aprendisaje_Palabras(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_AP(this.panelPreView); } } else if (this.comboBoxPrueba.Text == Resources.ComboValue_ASS_Colores) { codigo = Resources.TESTCODE_ASS; Configuracion_Atencion_Sostenida_Simple_Colores(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_ASS_Letras_Colores(this.panelPreView); } } else if (this.comboBoxPrueba.Text == Resources.ComboValue_TRC) { codigo = Resources.TESTCODE_TRC; Configuracion_Tiempo_Reaccion_Compleja(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_TR_Compleja(this.panelPreView); } } else if (this.comboBoxPrueba.Text == Resources.ComboValue_TRS) { codigo = Resources.TESTCODE_TRS; Configuracion_Tiempo_Reaccion_Simple(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_TRS(this.panelPreView); } } else if (this.comboBoxPrueba.Text == Resources.Combovalue_EM) { codigo = string.Empty;//Resources.TESTCODE_EM; Configuracion_Estimacion_Tiempo(); if (this.checkBox1.Checked) { this.panelPreView.Controls.Clear(); ap.Vsita_Previa_ET(this.panelPreView, ap.Configuracion.IntervaloSalida_ET, ap.Configuracion.AnchoEstimulo_ET, ap.Configuracion.AltoEstimulo_ET, ap.Configuracion.ZonaOpaca_ET, ap.Configuracion.AreaCorrecta_ET, ap.Configuracion.Estimulo_ET, ap.Configuracion.ColorZonaOpaca_ET); } } this.testInformationUC1.ToPublish(this.ap, codigo); }