Exemple #1
0
        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();
            }
        }
Exemple #2
0
        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);
                }
            }
        }