private void comboBoxTest_SelectedIndexChanged(object sender, EventArgs e) { try { if (this.ap != null) { this.ap.Cerrar_Vista_Previa(); } } catch (Exception) { MessageBox.Show(Resources.MSG_ClosePreViewError); return; } if (this.comboBoxTest.Text == Resources.ComboValue_PVA || this.comboBoxTest.Text == Resources.ComboValue_PVA2) { //string path = InfoPath() + "Fundamentacion_PVA.htm"; //this.webBrowserInfo.Url = new Uri(path); if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); var colores = new[] { ap.Configuracion.Colores_PVA[0], ap.Configuracion.Colores_PVA[1], ap.Configuracion.Colores_PVA[2], ap.Configuracion.Colores_PVA[3], ap.Configuracion.Colores_PVA[4], ap.Configuracion.Colores_PVA[5] }; ap.Vsita_Previa_PVA(this.panelPreView, colores, this.ap.Configuracion.Imagenes_PVA); } string code = (this.comboBoxTest.Text == Resources.ComboValue_PVA) ? "PVA" : "PVA2"; publicar(code); } else if (this.comboBoxTest.Text == Resources.ComboValue_ASS) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_ASS(this.panelPreView); } } publicar("ASS"); } else if (this.comboBoxTest.Text == Resources.ComboValue_ASS_L) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_ASS_L(this.panelPreView); } } publicar("ASS"); } else if (this.comboBoxTest.Text == Resources.ComboValue_ASC_L) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_ASC_L(this.panelPreView); } } publicar("ASCL"); } else if (this.comboBoxTest.Text == Resources.ComboValue_ASC) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_ASC(this.panelPreView); } } publicar("ASC"); } else if (this.comboBoxTest.Text == Resources.ComboValue_TRS) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_TRS(this.panelPreView); } } publicar("TRS"); } else if (this.comboBoxTest.Text == Resources.ComboValue_TRC) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_TR_Compleja(this.panelPreView); } } publicar("TRC"); } else if (this.comboBoxTest.Text == Resources.ComboValue_RL) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_AP(this.panelPreView); } } publicar("RL"); } else if (this.comboBoxTest.Text == Resources.ComboValue_AM) { if (this.checkBoxVistaPrevia.Checked) { this.panelPreView.Controls.Clear(); if (ap != null) { ap.Vsita_Previa_AM(this.panelPreView); } } publicar("AM"); } }
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); }