private void LateTask() { foreach (var task in Task) { if ((task.StartDate.Date <= DateTime.Today.Date && task.Progress == Progress.ToDo) || (task.EndDate <= DateTime.Today && task.Progress != Progress.Done)) { Late.Add(task); } } }