private void OnTimerResume() { if (TimerStatesStore.IsAnotherThan(TimerStatesStore.States.Pause)) { return; } TimerStatesStore.CurrentState = TimerStatesStore.States.Resume; _timerService.CurrentTime = TimerValuesStore.CurrentTime; _timerService.Start(); }
private void OnTimerPause(object sender, RoutedEventArgs e) { if (TimerStatesStore.IsAnotherThan(TimerStatesStore.States.Work, TimerStatesStore.States.Resume)) { return; } TimerStatesStore.CurrentState = TimerStatesStore.States.Pause; TimerValuesStore.CurrentTime = _timerService.CurrentTime; _timerService.Stop(); ShowResumeDialog(); }