public void AddPomodoroFinishedToastNotificationSchedule(DateTime time, bool isRemoveOthers = true) { if (IsEnabled == false) { return; } var notification = _toastNotificationsService.AddPomodoroFinishedToastNotificationSchedule(time, isRemoveOthers); _notifications.Add(notification); }
public void AddPomodoroFinishedToastNotificationSchedule(DateTime time, bool isRemoveOthers = true) { if (IsEnabled == false) { return; } if (SettingsService.Current.IsNotifyWhenPomodoroFinished == false) { return; } var notification = _toastNotificationsService.AddPomodoroFinishedToastNotificationSchedule(time, SettingsService.Current.PomodoroAudioUri, isRemoveOthers); _notifications.Add(notification); }