Пример #1
0
        public static bool IsSegmentReviewTypes(this DisplayFilterRowInfo rowInfo, DisplayFilterSettings settings)
        {
            var success = rowInfo.IsSegmentWithTQAs(settings) ||
                          rowInfo.IsSegmentWithTrackedChanges(settings) ||
                          rowInfo.IsSegmentWithComments(settings) ||
                          rowInfo.IsSegmentWithMessages(settings);

            return(success);
        }
Пример #2
0
        public static bool SegmentContainsTrackedChanges(this DisplayFilterRowInfo rowInfo, DisplayFilterSettings settings)
        {
            // If both options and the "And" relationship operator is selected
            if (settings.IsAndOperator && AreBothSourceAndTargetTrackedSelected(settings))
            {
                return(rowInfo.IsSegmentWithSourceAndTargetTrackedChanges(settings));
            }

            return(rowInfo.IsSegmentWithSourceTrackedChanges(settings) ||
                   rowInfo.IsSegmentWithTargetTrackedChanges(settings) ||
                   rowInfo.IsSegmentWithTrackedChanges(settings) ||
                   rowInfo.IsSegmentWithSourceAndTargetTrackedChanges(settings));
        }