Ejemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="id"></param>
        /// <param name="taskItem"></param>
        /// <returns>
        /// </returns>
        private ReminderTask GetTaskFromItem(string id, TaskItem taskItem)
        {
            var reminderTask = new ReminderTask(taskItem.EntryID, taskItem.Subject, taskItem.Body, taskItem.DueDate);

            reminderTask.IsCompleted = taskItem.Complete;
            reminderTask.CreatedOn   = taskItem.CreationTime;
            reminderTask.UpdatedOn   = taskItem.LastModificationTime;
            reminderTask.CompletedOn = taskItem.DateCompleted;
            reminderTask.StartDate   = taskItem.StartDate;
            reminderTask.StatusEnum  = taskItem.GetTaskStatus();
            return(reminderTask);
        }
 /// <summary>
 /// </summary>
 /// <param name="id"></param>
 /// <param name="taskItem"></param>
 /// <returns>
 /// </returns>
 private ReminderTask GetTaskFromItem(string id, TaskItem taskItem)
 {
     var reminderTask = new ReminderTask(taskItem.EntryID,taskItem.Subject,taskItem.Body, taskItem.DueDate);
     reminderTask.IsCompleted = taskItem.Complete;
     reminderTask.CreatedOn = taskItem.CreationTime;
     reminderTask.UpdatedOn = taskItem.LastModificationTime;
     reminderTask.CompletedOn = taskItem.DateCompleted;
     reminderTask.StartDate = taskItem.StartDate;
     reminderTask.StatusEnum = taskItem.GetTaskStatus();
     return reminderTask;
 }