Exemplo n.º 1
0
        public static void SetSystemReminder(this TaskModel task)
        {
            if (task.HasReminder)
            {
                List <DateTime>    dates    = task.ReminderDates();
                RecurrenceInterval interval = task.Repeats.Interval();

                foreach (DateTime date in dates)
                {
                    ReminderHelper.Add(
                        ToReminderName(task.Uid, date),
                        task.Title,
                        task.Detail,
                        date,
                        new Uri(string.Format("/Views/EditTaskPage.xaml?Task={0}", task.Uid), UriKind.Relative),
                        interval);
                }
            }
        }
Exemplo n.º 2
0
 public static void RemoveSystemReminder(this TaskModel task)
 {
     ReminderHelper.RemoveAll(task.Uid);
 }
Exemplo n.º 3
0
 public static bool ExistsSystemReminder(this TaskModel task)
 {
     return(ReminderHelper.GetAll(task.Uid).Count > 0);
 }
Exemplo n.º 4
0
 public static List <Reminder> GetSystemReminder(this TaskModel task)
 {
     return(ReminderHelper.GetAll(task.Uid));
 }