Пример #1
0
        public void AddBreakFinishedToastNotificationSchedule(DateTime time, bool isRemoveOthers = true)
        {
            if (IsEnabled == false)
            {
                return;
            }

            var notification = _toastNotificationsService.AddBreakFinishedToastNotificationSchedule(time, isRemoveOthers);

            _notifications.Add(notification);
        }
        public void AddBreakFinishedToastNotificationSchedule(DateTime time, bool isRemoveOthers = true)
        {
            if (IsEnabled == false)
            {
                return;
            }

            if (SettingsService.Current.IsNotifyWhenBreakFinished == false)
            {
                return;
            }

            var notification = _toastNotificationsService.AddBreakFinishedToastNotificationSchedule(time, SettingsService.Current.BreakAudioUri, isRemoveOthers);

            _notifications.Add(notification);
        }