示例#1
0
        public void Remove(Task item)
        {
            var task = tasks.FirstOrDefault(x => x.Status != TaskStatus.Canceded && x.Task == item);

            if (task != null)
            {
                task.Status = TaskStatus.Canceded;
            }
        }