private void OnTimerStopped(TimerStopped @event)
 {
     if (@event.IsIntervalCompleted && userPreferences.ShowToastNotifications)
     {
         var toast = Toasts.IntervalCompleted(@event.IntervalType, pomodoroEngine.SuggestedBreakType);
         toast.Activated += OnToastActivated;
         toastNotifier.Show(toast);
     }
 }
示例#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))
                                                     );
            }
        }
 private void OnAppUpdated(AppUpdated @event)
 {
     toastNotifier.Show(Toasts.AppUpdated());
 }
        private void OnFirstRun(FirstRun @event)
        {
            var toast = Toasts.FirstRun();

            toastNotifier.Show(toast);
        }