Loction Button Click Event:-
-----------------------------
string strLatitute = e.lat.ToString();
string strLongitute = e.lng.ToString();
var address = await DependencyService.Get<IReverseGeocode>().ReverseGeoCodeLatLonAsync(Convert.ToDouble(strLatitute), Convert.ToDouble(strLongitute));
lblSummaryLoction.Text = address.Address1;
if (App.isFifthPage)
{
btnMedicationNext.Text = "SUBMIT";
}
else {
btnMedicationNext.Text = "NEXT";
}
btnMedicationNext.Clicked += delegate
{
if (App.isFifthPage)
{
App.isFifthPage = false;
Navigation.PopModalAsync();
}
-----------------------------
string strLatitute = e.lat.ToString();
string strLongitute = e.lng.ToString();
var address = await DependencyService.Get<IReverseGeocode>().ReverseGeoCodeLatLonAsync(Convert.ToDouble(strLatitute), Convert.ToDouble(strLongitute));
lblSummaryLoction.Text = address.Address1;
if (App.isFifthPage)
{
btnMedicationNext.Text = "SUBMIT";
}
else {
btnMedicationNext.Text = "NEXT";
}
btnMedicationNext.Clicked += delegate
{
if (App.isFifthPage)
{
App.isFifthPage = false;
Navigation.PopModalAsync();
}
No comments:
Post a Comment