private int GetAdjustedItemDepth(bool hasSearchString, int minDepth, int adjPropertyDepth) { return (!hasSearchString ? (adjPropertyDepth - minDepth) : 0); }