private static bool maxGreaterThanMin(ParameterRange param, double?maxValueInDisplayUnit) { if (doesNotNeedCheck(param.MinValue, maxValueInDisplayUnit)) { return(true); } return(param.baseValueFrom(maxValueInDisplayUnit) >= param.MinValue); }
private static bool minLessThanDbMax(ParameterRange param, double?minValueInDisplayUnit) { if (doesNotNeedCheck(param.DbMaxValue, minValueInDisplayUnit)) { return(true); } return(param.baseValueFrom(minValueInDisplayUnit) <= param.DbMaxValue); }