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"); } }