예제 #1
0
        public RecordScreenViewModel(MainContext context) : base(context)
        {
            rideController      = new RideRecorder(Context);
            accelerometerStatus = Context.AccelerometerUtility.Status;
            status         = RecordStatus.NotStarted;
            timer          = new Timer();
            timer.Elapsed += Timer_Elapsed;
            timer.Interval = 1000;

            Context.AccelerometerUtility.StatusChanged += BleAccelerometerUtility_StatusChanged;
            Context.GeoUtility.LocationChanged         += GeoUtility_LocationChanged;
        }
예제 #2
0
        public RecordScreenViewModel(MainContext context) : base(context)
        {
            rideRecorder   = new RideRecorder(Context);
            status         = RecordStatus.NotStarted;
            timer          = new Timer();
            timer.Elapsed += Timer_Elapsed;
            timer.Interval = 1000;

            bool shouldDetectJumps = Context.Settings.ShouldDetectJumps;

            CrossGeolocator.Current.PositionChanged += Current_PositionChanged;
        }