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); } } }
public static void RemoveSystemReminder(this TaskModel task) { ReminderHelper.RemoveAll(task.Uid); }
public static bool ExistsSystemReminder(this TaskModel task) { return(ReminderHelper.GetAll(task.Uid).Count > 0); }
public static List <Reminder> GetSystemReminder(this TaskModel task) { return(ReminderHelper.GetAll(task.Uid)); }