public void ExecuteFindSelectedDateCommand(object parametr) { if (SearchDate != null) { CurrentSelectedDate = SearchDate; DayTasks = CalendarRepository.Instance.GetByDay(CurrentSelectedDate).DailyTasks; DaysHB = CalendarRepository.Instance.GetHBByDay(CurrentSelectedDate); if (_taskHeight == 0) { ViewTasks.Execute(null); } TaskDate = SearchDate.ToShortDateString(); } }
private async void _FilterTask_Exec(object obj) { var project = obj as ViewProject; if (project != null) { var list = ViewTasks.Where(x => x.projectId == project.Id); ShowingTasks = new ObservableCollection <ViewTask>(list); } else { var str = obj as string; if (str == "All") { ShowingTasks = ViewTasks; } if (str == "Download") { await Download <TaskView>(); } } }