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); } } } }
private void btnPerfil_Click(object sender, EventArgs e) { FC = new FormCliente(logica.getDatosCliente(), logica.getPrgmsEducativo()); abrirChildForm(FC); }