Пример #1
0
        public static SelectionFilter CreateOrFilter(SelectionFilter[] filters)
        {
            SelectionFilter returnValue = new SelectionFilter();

            returnValue.FilterType = SelectionFilter.FilterTypeOr;
            returnValue.Filters    = filters;

            return(returnValue);
        }
Пример #2
0
        public static SelectionFilter CreateLeaf(string attributeName, string searchOperator, string filterValue)
        {
            SelectionFilter returnValue = new SelectionFilter();

            returnValue.FilterType     = SelectionFilter.FilterTypeLeaf;
            returnValue.AttributeName  = attributeName;
            returnValue.SearchOperator = searchOperator;
            returnValue.FilterValue    = filterValue;

            return(returnValue);
        }