private void ConfirmarRegistro(object sender, RoutedEventArgs e) { if (claveIngresada.Text.Trim() != "") { try { RegistroJugadorAdmin.VerificarClaveIngresada(claveIngresada.Text); } catch (EndpointNotFoundException) { new Mensaje { TituloMensaje = Properties.Resources.ErrorServidor_TituloContenido, Contenido = Properties.Resources.ErrorServidor_MensajeContenido }.ShowDialog(); } catch (CommunicationObjectFaultedException) { new Mensaje { TituloMensaje = Properties.Resources.ErrorServidor_TituloContenido, Contenido = Properties.Resources.ErrorServidor_MensajeContenido }.ShowDialog(); } } else { new Mensaje { TituloMensaje = Properties.Resources.CamposIncompletosTitulo, Contenido = Properties.Resources.CamposIncompletosMensaje }.ShowDialog(); } }
private void RegistrarNuevaCuenta(object sender, RoutedEventArgs e) { if (CamposCompletos() && CorreoValido() && SonContraseniasIguales()) { Jugador jugadorARegistrar = new Jugador { Nickname = usuarioIngresado.Text, CorreoElectronico = correoElectronicoIngresado.Text, Contraseña = contraseniaIngresada.Password }; try { RegistroJugadorAdmin.RegistrarNuevoJugador(jugadorARegistrar); } catch (EndpointNotFoundException) { new Mensaje { TituloMensaje = Properties.Resources.ErrorServidor_TituloContenido, Contenido = Properties.Resources.ErrorServidor_MensajeContenido }.ShowDialog(); } catch (CommunicationObjectFaultedException) { new Mensaje { TituloMensaje = Properties.Resources.ErrorServidor_TituloContenido, Contenido = Properties.Resources.ErrorServidor_MensajeContenido }.ShowDialog(); } } }
private void CancelarRegistro(object sender, RoutedEventArgs e) { try { RegistroJugadorAdmin.CancelarRegistrarJugador(); } catch (EndpointNotFoundException) { new Mensaje { TituloMensaje = Properties.Resources.ErrorServidor_TituloContenido, Contenido = Properties.Resources.ErrorServidor_MensajeContenido }.ShowDialog(); } catch (CommunicationObjectFaultedException) { new Mensaje { TituloMensaje = Properties.Resources.ErrorServidor_TituloContenido, Contenido = Properties.Resources.ErrorServidor_MensajeContenido }.ShowDialog(); } }