Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using AmilMobile.Agendamento.Models.Geocode;
  7. using AmilMobile.SharedComponents.util;
  8. using AmilMobile.Agendamento.ViewModels;
  9. using Xamarin.Forms;
  10. using Xamarin.Forms.Xaml;
  11. using AmilMobile.Agendamento.Helpers;
  12. using Rg.Plugins.Popup.Services;
  13. using AmilMobile.Agendamento.Models.Endereco;
  14.  
  15. namespace AmilMobile.Agendamento.Views
  16. {
  17.     [XamlCompilation(XamlCompilationOptions.Compile)]
  18.     public partial class HistoryViewExamDetail : ContentPage
  19.     {
  20.         AgendamentoViewModel viewModel;
  21.         Models.Agendamento ag;
  22.      
  23.         public HistoryViewExamDetail (Models.Agendamento agendamento)
  24.         {
  25.             ag = agendamento;
  26.             viewModel = new AgendamentoViewModel(agendamento);
  27.  
  28.             BindingContext = viewModel;
  29.             InitializeComponent ();
  30.         }
  31.         private async void f_Voltar(object sender, EventArgs e)
  32.         {
  33.             await Navigation.PopAsync();
  34.         }
  35.  
  36.         private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
  37.         {
  38.             Device.BeginInvokeOnMainThread(async () =>
  39.             {
  40.                 if (GlobalProperty.GetAddressBeneficiary().Endereco != null)
  41.                 {
  42.                     double Latitude = Convert.ToDouble(GlobalProperty.GetAddressBeneficiary().Endereco.Latitude);
  43.                     double Longitude = Convert.ToDouble(GlobalProperty.GetAddressBeneficiary().Endereco.Longitude);
  44.                     await PopupNavigation.Instance.PushAsync(new SharedAddressWithAppsPopUp(new LocalPosition(Latitude, Longitude)));
  45.                 }
  46.             });
  47.         }
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement