Beispiel #1
0
        public Category GetCategoryFilter()
        {
            if (SelectedCategories.Count() == 0)
            {
                return(Category.Default);
            }

            Category res = SelectedCategories.First();

            for (int i = 1; i < SelectedCategories.Count(); i++)
            {
                res |= SelectedCategories.ElementAt(i);
            }
            return(res);
        }