Exemple #1
0
        private void OnTimerFinished(object sender, PomodoroChangedEventArgs args)
        {
            StopTimerTick();

            Device.BeginInvokeOnMainThread(() =>
            {
                TimerInfo = new PomodoroTimerState();
                Tick      = 0;
            });
        }
Exemple #2
0
        private void OnTimerFinished(object sender, PomodoroChangedEventArgs args)
        {
            StopTimerTick();

            Device.BeginInvokeOnMainThread(() =>
            {
                RemainingTimeValue   = TimeSpan.Zero;
                TimerInfo.TimerState = TimerState.Complated;
                OnPropertyChanged("TimerInfo");
                Tick = 0;
            });
        }
        private void OnTimerFinished(object sender, PomodoroChangedEventArgs eventArgs)
        {
            TimerFinishedEvent?.Invoke(
                this,
                eventArgs
                );
            if (IsNotificationEnable)
            {
                NotificationService.SetFinisedInfo(eventArgs.ComplatedState);
            }

            if (eventArgs.ComplatedState == PomodoroState.Pomodoro)
            {
                OnPomodoroFinished();
            }
            else
            {
                OnBreakFinished();
            }
        }