//Boton para acceder a la sesion private void Button_Click(object sender, RoutedEventArgs e) { if (workLogin.LoginUser(txtUsername.Text, txtPassword.Password)) { User logged = workLogin.getUserLogged(); RememberUser(logged); userLogged(logged); ShortNotifications.ShowDialog("Bienvenido " + workLogin.getUserLogged().Fullname); } else { ShortNotifications.ShowDialog("Usuario o contraseƱa incorrecta"); } }
//Boton para acceder a la sesion private void Button_Click(object sender, RoutedEventArgs e) { if (workLogin.LoginUser(txtUsername.Text, txtPassword.Password)) { User logged = workLogin.getUserLogged(); RememberUser(logged); userLogged(logged); MessageBox.Show("Welcome " + workLogin.getUserLogged().Fullname, "Login successful"); } else { MessageBox.Show("Wrong username or password", "Error"); } }