private void StartTicking(int TotalTime, int Increment) { int _totalTime = TotalTime * 60; ProgressState = "Normal"; ProgressValue = (double)Increment / _totalTime; if (Increment >= _totalTime) { _ticks = 0; if (_isWork) { _itemRepository.CompletePomodoro(); } StopTicking(); } }
private void StartTicking(int TotalTime, int Increment) { int _totalTime = TotalTime * 60; ProgressState = "Normal"; ProgressValue = (double)Increment / _totalTime; if (Increment >= _totalTime) { _ticks = 0; if (_isWork) { _itemRepository.CompletePomodoro(); } StopTicking(); PauseMusic(); if (!_isWork && AutoStartBreak) { Start_Click(this, null); } } }