private void Button_Clicked(object sender, EventArgs e)
 {
     trip.Status    = 2;
     trip.FinalDate = DateTime.Now;
     timerFlag      = false;
     DriverMainPage.GetInstance().UdpdateActualTrip(trip, true);
 }
 // This is the method to run when the timer is raised.
 private static void TimerEventProcessor(UserModel userSelected)
 {
     Device.StartTimer(TimeSpan.FromSeconds(10), () =>
     {
         DriverMainPage.GetInstance().UpdateUserLocation();
         return(timerFlag); // True = Repeat again, False = Stop the timer
     });
 }