Esempio n. 1
0
        protected override void FillImplementation(SaveTrainingDayResult originalEntry)
        {
            viewModel.Fill(GpsTrackerEntry);

            if (GpsTrackerEntry.HasCoordinates)
            {
                ThreadPool.QueueUserWorkItem(x =>
                {
                    Helper.EnsureThreadLocalized();
                    viewModel.RetrieveGpsCoordinates();
                    if (viewModel.GPSPoints == null || viewModel.GPSPoints.Count == 0)
                    {
                        return;
                    }
                    UIHelper.BeginInvoke(new Action(() =>
                    {
                        RefreshGui(true);
                    }), Dispatcher);
                });
            }
            else
            {
                viewModel.GpsCoordinatesStatus = GPSStrings.usrGPSTrackerEntry_InfoEntryWithoutGpsData;
            }
        }