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); } }); } }
public virtual void OnTaskEdited(Task task) { var args = new TaskEventArgs(task, TaskAction.Edit); TaskChange?.Invoke(this, args); }
protected virtual void OnTaskMoved(Task task) { var args = new TaskMovedEventArgs(task); TaskChange?.Invoke(this, args); }
protected virtual void OnTaskChanged(Task task, TaskAction action) { var args = new TaskEventArgs(task, action); TaskChange?.Invoke(this, args); }