コード例 #1
0
ファイル: MainForm.cs プロジェクト: yovanych/Neurohipot
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (ap.VistaPrevia != null)
     {
         if (this.checkBox1.Checked)
         {
             if (this.comboBoxPrueba.Text == Resources.ComboValue_MF)
             {
                 ap.Vsita_Previa_MF(this.panelPreView, ap.Configuracion.Imagenes_MF);
                 return;
             }
             if (this.comboBoxPrueba.Text == Resources.ComboValue_PVA)
             {
                 ap.Vsita_Previa_PVA(this.panelPreView, ap.Configuracion.Colores_PVA, ap.Configuracion.Imagenes_PVA);
                 return;
             }
             if (this.comboBoxPrueba.Text == Resources.ComboValue_AM)
             {
                 ap.Vsita_Previa_AM(this.panelPreView);
                 return;
             }
             if (this.comboBoxPrueba.Text == Resources.ComboValue_RL)
             {
                 ap.Vsita_Previa_AP(this.panelPreView);
                 return;
             }
             if (this.comboBoxPrueba.Text == Resources.ComboValue_ASS)
             {
                 ap.Vsita_Previa_ASS(this.panelPreView);
                 return;
             }
             if (this.comboBoxPrueba.Text == Resources.Combovalue_EM)
             {
                 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);
             }
         }
         else
         {
             ap.Cerrar_Vista_Previa();
         }
     }
 }
コード例 #2
0
 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");
     }
 }