Ejemplo n.º 1
0
 private void btnEntrar_Click(object sender, EventArgs e)
 {
     using (LogInService service = new LogInService()) {
         LogIn logIn = new LogIn()
         {
             Pass_word = this.Password, User_name = this.UserName
         };
         //
         if (service.ValidaLogIn(logIn))
         {
             FrmMenu frmMenu = new FrmMenu();
             frmMenu.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show(this, "Usuario y Password Inconrrectas", "CSE_DEPT", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }