示例#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();
            }
        }
示例#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);
                }
            }
        }