private void _dispatcherTimer_Tick(object sender, EventArgs e)
        {
            if (TimeRemaining == TimeSpan.Zero)
            {
                TimerLockUIStop();
            }

            TimeRemaining = TimeRemaining.Add(TimeSpan.FromSeconds(-1));
        }
Example #2
0
 private void RoundTimeRemainingUpToSecond()
 {
     TimeRemaining = TimeRemaining.Add(new TimeSpan(0, 0, 0, 0, 1000 - TimeRemaining.Milliseconds));
 }