private IBindingList GetAttivita(DateTime m) { TaskHandler h = new TaskHandler(); List <IsearchDTO> dto = new List <IsearchDTO>(); dto.Add(new SimpleTaskSearch("", "", DataRange.Empty(), true, true, true, true, true, true, m.AddDays(-1))); h.ExecuteQuery(dto, 0, Properties.Settings.Default.Main_DeadlineDaysBefore); return(h.BindableResults); }