public static bool IsSegmentContentTypes(this DisplayFilterRowInfo rowInfo,
                                                 DisplayFilterSettings settings)
        {
            var success = rowInfo.IsSegmentContentTypeNumbersOnly(settings) ||
                          rowInfo.IsSegmentContentTypeExcludingNumberOnly(settings);

            return(success);
        }
示例#2
0
        public static bool IsSegmentContentTypes(this DisplayFilterRowInfo rowInfo, DisplayFilterSettings settings)
        {
            var success = settings.SegmentContentTypes?[0] == DisplayFilterSettings.SegmentContentType.NumbersOnly.ToString() &&
                          rowInfo.IsSegmentContentTypeNumbersOnly(settings);

            if (!success && settings.SegmentContentTypes?[0] == DisplayFilterSettings.SegmentContentType.ExcludeNumberOnly.ToString() &&
                rowInfo.IsSegmentContentTypeExcludingNumberOnly(settings))
            {
                success = true;
            }

            return(success);
        }
示例#3
0
        public static bool IsSegmentContentTypes(this DisplayFilterRowInfo rowInfo,
                                                 DisplayFilterSettings settings)
        {
            if (settings.SegmentContentTypes?[0] == "NumbersOnly")
            {
                return(rowInfo.IsSegmentContentTypeNumbersOnly(settings));
            }
            if (settings.SegmentContentTypes?[0] == "ExcludeNumberOnly")
            {
                return(rowInfo.IsSegmentContentTypeExcludingNumberOnly(settings));
            }

            return(true);
        }