private void FilterByProject() { var project = SelectedProject; if (!string.IsNullOrEmpty(project)) { Filters.Add(new ProjectTaskFilter(t => t.Projects.Contains(project), project)); Messenger.Default.Send <DrillDownMessage, MainPivot>( new DrillDownMessage(TaskFilterFactory.CreateFilterString(Filters))); } }
private void FilterByContext() { var context = SelectedContext; if (!string.IsNullOrEmpty(context)) { Filters.Add(new ContextTaskFilter(t => t.Contexts.Contains(context), context)); Messenger.Default.Send <DrillDownMessage, MainPivot>( new DrillDownMessage(TaskFilterFactory.CreateFilterString(Filters))); } }