private void OutlookItems_ItemChange(object Item)
 {
     if (Item is Outlook.TaskItem)
     {
         Outlook.TaskItem taskItem = Item as Outlook.TaskItem;
         taskAndCategoryLoader.Tasks.ForEach(task =>
         {
             if (task.EntryId.Equals(taskItem.EntryID))
             {
                 taskAndCategoryLoader.UpdateTask(task, taskItem, taskAndCategoryLoader.Categories, taskAndCategoryLoader.DefaultCategory);
                 TaskChange?.Invoke(task);
             }
         });
     }
 }
Esempio n. 2
0
        public virtual void OnTaskEdited(Task task)
        {
            var args = new TaskEventArgs(task, TaskAction.Edit);

            TaskChange?.Invoke(this, args);
        }
Esempio n. 3
0
        protected virtual void OnTaskMoved(Task task)
        {
            var args = new TaskMovedEventArgs(task);

            TaskChange?.Invoke(this, args);
        }
Esempio n. 4
0
        protected virtual void OnTaskChanged(Task task, TaskAction action)
        {
            var args = new TaskEventArgs(task, action);

            TaskChange?.Invoke(this, args);
        }