Example #1
0
        private void btnIngresar_Click(object sender, EventArgs e) //este es el que manda datos al dataCliente
        {
            if (FL.validarCampos())
            {
                logica.setDatosCliente(FL.iniciarSesion());
                if (logica.getDatosCliente().Count > 0)
                {
                    if (logica.ValidarTipoUsuario(logica.getDatosCliente()))    //true == pasa
                    {
                        //new MyMessageBox().Show(LOGIN_EXITO);
                        if (logica.getPrgmsEducativo() != null) //evita el error de nullPointerException
                        {
                            FC = new FormCliente(logica.getDatosCliente(), logica.getPrgmsEducativo());
                        }
                        else
                        {
                            FC = new FormCliente(logica.getDatosCliente());
                        }

                        abrirChildForm(FC);
                        customDesing(VISTA_CONSUMIDOR);
                    }
                }
            }
        }
Example #2
0
 private void btnPerfil_Click(object sender, EventArgs e)
 {
     FC = new FormCliente(logica.getDatosCliente(), logica.getPrgmsEducativo());
     abrirChildForm(FC);
 }