private void AddTask(DemoTask task) { ContactTasks.Add(new ContactDemoTask { Contact = this, Task = task }); }
private void RemoveTask(DemoTask task) { int index = ContactTasks.FindIndex(t => t.TaskID == task.ID); if (index > -1) { ContactTasks.RemoveAt(index); } }