private void BtRegresar_Click(object sender, RoutedEventArgs e) { this.Close(); Alta a = new Alta(); a.Show(); }
private void LbAcceder_Click(object sender, RoutedEventArgs e) { String res = Conexion.comprabarPwd(tbUsuario.Text, tbContra.Text); if (res.Equals("contraseƱa correcta")) { Alta w = new Alta(); w.Show(); this.Close(); } else { MessageBox.Show(res); } }