private void Initalize() { DoctorLocationTracker tracker = new DoctorLocationTracker(); Lati = tracker.GetCurrentLocationAsync().Result.Latitude.ToString(); Longi = tracker.GetCurrentLocationAsync().Result.Longitude.ToString(); }
protected override void OnStart() { // Handle when your app starts /* * Clear the local database **More logic based on time etc. * needed This will have to do for now */ PatientsWaintingLineDb.ClearLocalDatabase(); PrescriptionLocalDb.ClearBusket(); //Get doctors location DoctorLocationTracker doctorLocationTracker = new DoctorLocationTracker(); Task.FromResult(doctorLocationTracker.GetCurrentLocationAsync()); }