コード例 #1
0
        private void Initalize()
        {
            DoctorLocationTracker tracker = new DoctorLocationTracker();

            Lati = tracker.GetCurrentLocationAsync().Result.Latitude.ToString();

            Longi = tracker.GetCurrentLocationAsync().Result.Longitude.ToString();
        }
コード例 #2
0
        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());
        }