private void salir_Click(object sender, RoutedEventArgs e) { win_MenuPrincipal win = new win_MenuPrincipal(); win.Show(); this.Close(); }
private void btnRegresar_Click(object sender, RoutedEventArgs e) { win_MenuPrincipal menu = new win_MenuPrincipal(); menu.Show(); this.Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { usr_usuarios user = new usr_usuarios(); user.usr_password = this.txtPasswor.Password.ToString(); user.usr_nombre = this.txtUser.Text; LoginBLL log = new LoginBLL(); var retorno = log.login(user); if (retorno != null) { win_MenuPrincipal menu = new win_MenuPrincipal(user); menu.Show(); this.Close(); } else { MessageBox.Show("Usuario o Contraseña invalidos.\n Intente de nuevo.", "ERROR", MessageBoxButton.OK, MessageBoxImage.Exclamation); } }
public win_MenuPrincipal() { InitializeComponent(); menu = this; }