private void OnTimerStopped(TimerStopped @event)
 {
     if (@event.IsIntervalCompleted && userPreferences.ShowToastNotifications)
     {
         var toast = Toasts.IntervalCompleted(@event.IntervalType, pomodoroEngine.SuggestedBreakType);
         toast.Activated += OnToastActivated;
         toastNotifier.Show(toast);
     }
 }
Exemplo n.º 2
0
        private void OnTimerStopped(TimerStopped @event)
        {
            if (@event.IsIntervalCompleted && userPreferences.ShowToastNotifications)
            {
                var toast = Toasts.IntervalCompleted(@event.IntervalType, pomodoroEngine.SuggestedBreakType);

                TimerWindow.DispatcherUi.BeginInvoke(new System.Action
                                                         (() => toastNotifier.Show(toast))
                                                     );
            }
        }