Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using AmilMobile.Agendamento.Models.Geocode;
- using AmilMobile.SharedComponents.util;
- using AmilMobile.Agendamento.ViewModels;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- using AmilMobile.Agendamento.Helpers;
- using Rg.Plugins.Popup.Services;
- using AmilMobile.Agendamento.Models.Endereco;
- namespace AmilMobile.Agendamento.Views
- {
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class HistoryViewExamDetail : ContentPage
- {
- AgendamentoViewModel viewModel;
- Models.Agendamento ag;
- public HistoryViewExamDetail (Models.Agendamento agendamento)
- {
- ag = agendamento;
- viewModel = new AgendamentoViewModel(agendamento);
- BindingContext = viewModel;
- InitializeComponent ();
- }
- private async void f_Voltar(object sender, EventArgs e)
- {
- await Navigation.PopAsync();
- }
- private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
- {
- Device.BeginInvokeOnMainThread(async () =>
- {
- if (GlobalProperty.GetAddressBeneficiary().Endereco != null)
- {
- double Latitude = Convert.ToDouble(GlobalProperty.GetAddressBeneficiary().Endereco.Latitude);
- double Longitude = Convert.ToDouble(GlobalProperty.GetAddressBeneficiary().Endereco.Longitude);
- await PopupNavigation.Instance.PushAsync(new SharedAddressWithAppsPopUp(new LocalPosition(Latitude, Longitude)));
- }
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement