private void btnLogin_Click(object sender, EventArgs e) { string user = txtUsuario.Text; string clave = txtClave.Text; LoginBLL oLoginBLL = new LoginBLL(); if (oLoginBLL.validar(user, clave)) { pnlErrorLogin.Visible = false; ControlUtils.openMdi(ParentForm, new Home(user)); Close(); } else { txtUsuario.Text = ""; txtClave.Text = ""; txtUsuario.Focus(); pnlErrorLogin.Visible = true; } }
private void pictureBox2_Click(object sender, EventArgs e) { ControlUtils.openMdi(ParentForm, new Login()); Close(); }