public static bool IsSegmentContentTypes(this DisplayFilterRowInfo rowInfo, DisplayFilterSettings settings) { var success = rowInfo.IsSegmentContentTypeNumbersOnly(settings) || rowInfo.IsSegmentContentTypeExcludingNumberOnly(settings); return(success); }
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); }
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); }