コード例 #1
0
 private void AddTask(DemoTask task)
 {
     ContactTasks.Add(new ContactDemoTask {
         Contact = this,
         Task    = task
     });
 }
コード例 #2
0
        private void RemoveTask(DemoTask task)
        {
            int index = ContactTasks.FindIndex(t => t.TaskID == task.ID);

            if (index > -1)
            {
                ContactTasks.RemoveAt(index);
            }
        }