private void ModificarDireccion(object sender, ConsultarDirCliPorUbicaCompletedEventArgs e)
        {
            try
            {
                if (e.Result.Id_Ubicacion == null)
                {
                    MessageBox.Show("La dirección no se encuentra registrada, intente de nuevo");
                }
                else
                {
                    lblIdDir.Text  = e.Result.Id_Ubicacion;
                    txtDir.Text    = e.Result.Direccion.ToUpper();
                    txtBarrio.Text = e.Result.Barrio.ToUpper();
                    txtTel.Text    = e.Result.Telefono_1.ToUpper();

                    lblIdDirec.Visibility      = System.Windows.Visibility.Visible;
                    lblIdDir.Visibility        = System.Windows.Visibility.Visible;
                    lblDireccion.Visibility    = System.Windows.Visibility.Visible;
                    txtDir.Visibility          = System.Windows.Visibility.Visible;
                    lblBarrio.Visibility       = System.Windows.Visibility.Visible;
                    txtBarrio.Visibility       = System.Windows.Visibility.Visible;
                    lblDep.Visibility          = System.Windows.Visibility.Visible;
                    lblDepNom.Visibility       = System.Windows.Visibility.Visible;
                    lblCiudad.Visibility       = System.Windows.Visibility.Visible;
                    lblCiudadNombre.Visibility = System.Windows.Visibility.Visible;
                    lblTel.Visibility          = System.Windows.Visibility.Visible;
                    txtTel.Visibility          = System.Windows.Visibility.Visible;
                }

                txtIdDir.Text = "";
            }
            catch (Exception ex)
            {
                MessageBox.Show("Ha ocurrido un error en el sistema");
                NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
            }
            finally
            {
                NavigationService.Navigate(new Uri("/Clientes/frmConsultarCliente.xaml", UriKind.Relative));
            }
        }
        private void ModificarDireccion(object sender, ConsultarDirCliPorUbicaCompletedEventArgs e)
        {
            try
            {
                if (e.Result.Id_Ubicacion == null)
                {
                    MessageBox.Show("La dirección no se encuentra registrada, intente de nuevo");
                }
                else
                {
                    lblIdDir.Text = e.Result.Id_Ubicacion;
                    txtDir.Text = e.Result.Direccion.ToUpper();
                    txtBarrio.Text = e.Result.Barrio.ToUpper();
                    txtTel.Text = e.Result.Telefono_1.ToUpper();

                    lblIdDirec.Visibility = System.Windows.Visibility.Visible;
                    lblIdDir.Visibility = System.Windows.Visibility.Visible;
                    lblDireccion.Visibility = System.Windows.Visibility.Visible;
                    txtDir.Visibility = System.Windows.Visibility.Visible;
                    lblBarrio.Visibility = System.Windows.Visibility.Visible;
                    txtBarrio.Visibility = System.Windows.Visibility.Visible;
                    lblDep.Visibility = System.Windows.Visibility.Visible;
                    lblDepNom.Visibility = System.Windows.Visibility.Visible;
                    lblCiudad.Visibility = System.Windows.Visibility.Visible;
                    lblCiudadNombre.Visibility = System.Windows.Visibility.Visible;
                    lblTel.Visibility = System.Windows.Visibility.Visible;
                    txtTel.Visibility = System.Windows.Visibility.Visible;
                }

                txtIdDir.Text = "";
            }
            catch (Exception ex)
            {
                MessageBox.Show("Ha ocurrido un error en el sistema");
                NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
            }
            finally
            {
                NavigationService.Navigate(new Uri("/Clientes/frmConsultarCliente.xaml", UriKind.Relative));
            }
        }