Пример #1
0
        private void CreateNextAlarm()
        {
            if (alarm.IsLaterAlarm)
            {
                alarm.IsLaterAlarm = false;
            }

            if (!IsRepeating)
            {
                Alarm.ChangeIsActive(alarm, false);
            }
            else
            {
                AlarmHelper.SetRepeatAlarm(alarm);
            }

            Console.WriteLine($"alarmName_AlarmActivity : {alarm.Name}");
            Console.WriteLine($"alarmId_AlarmActivity : {alarm.Id}");
            Console.WriteLine($"alarmDaysId_AlarmActivity : {alarm.DaysId}");
            Console.WriteLine($"alarmDays.Id_AlarmActivity : {alarm.Days.Id}");
            alarmService.SaveAlarmAtLocal(alarm);
        }