async Task OnInformationListCommand(DisplayInformation displayInformation)
        {
            switch (displayInformation.DisplayInformationType)
            {
            case DisplayInformationType.Contact:
                if (await _pageDialogService.DisplayAlertAsync("Call", $"Call {displayInformation.MainText} on {displayInformation.Subtext}", "Call", "Cancel"))
                {
                    _phoneCallTask.MakePhoneCall(displayInformation.Subtext, displayInformation.MainText);
                }
                break;

            case DisplayInformationType.Location:
                await _externalMaps.NavigateTo(DisplayCaseDetails.Name, SelectedCase.Patient.PatientAddress1, SelectedCase.Patient.PatientCity, SelectedCase.Patient.PatientState, SelectedCase.Patient.PatientZip, "USA", "USA");

                break;
            }
        }
Пример #2
0
        public async Task <bool> NavigateTo(double latitude, double longitude, string name = "PostApp")
        {
            var res = await maps.NavigateTo(name, latitude, longitude);

            return(res);
        }