コード例 #1
0
ファイル: TimerViewModel.cs プロジェクト: astondg/track-timer
        public async Task StartLapTimer()
        {
            // Fire & forget - don't care about result
            await TurnOnCamera();

            IsTiming = true;
            lapTimer.TimingStarted  += lapTimer_TimingStarted;
            lapTimer.SectorComplete += lapTimer_SectorComplete;
            lapTimer.LapComplete    += lapTimer_LapComplete;

            lapUpdateTimer = new Timer(UpdateStopwatchDisplay);
            lapUpdateTimer.Change(0, 50);
            LapCount         = 1;
            CurrentLapStatus = TimeSpan.Zero;
            CurrentLapTime   = TimeSpan.Zero;
            lapTimer.StartTiming(true);
        }