コード例 #1
0
        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)));
            }
        }
コード例 #2
0
        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)));
            }
        }