public static bool LimitOperatorValue(ELimitOperator eOpt, sbyte nCurrValue, sbyte nParam) { bool bRlt = false; switch (eOpt) { case ELimitOperator.ELO_Equal: bRlt = nCurrValue == nParam; break; case ELimitOperator.ELO_NotEuqal: bRlt = nCurrValue != nParam; break; case ELimitOperator.ELO_MoreThan: bRlt = nCurrValue > nParam; break; case ELimitOperator.ELO_LessThan: bRlt = nCurrValue < nParam; break; case ELimitOperator.ELO_MoreThanEuqal: bRlt = nCurrValue >= nParam; break; case ELimitOperator.ELO_LessThanEuqal: bRlt = nCurrValue <= nParam; break; } return(bRlt); }
public static bool LimitOperatorValue(ELimitOperator eOpt, bool nCurrValue, bool nParam) { bool bRlt = false; switch (eOpt) { case ELimitOperator.ELO_Equal: bRlt = nCurrValue == nParam; break; case ELimitOperator.ELO_NotEuqal: bRlt = nCurrValue != nParam; break; } return(bRlt); }
public static bool LimitOperatorValue(ELimitOperator eOpt, long nCurrValue, long nParam) { bool bRlt = false; switch(eOpt) { case ELimitOperator.ELO_Equal: bRlt = nCurrValue == nParam; break; case ELimitOperator.ELO_NotEuqal: bRlt = nCurrValue != nParam; break; case ELimitOperator.ELO_MoreThan: bRlt = nCurrValue > nParam; break; case ELimitOperator.ELO_LessThan: bRlt = nCurrValue < nParam; break; case ELimitOperator.ELO_MoreThanEuqal: bRlt = nCurrValue >= nParam; break; case ELimitOperator.ELO_LessThanEuqal: bRlt = nCurrValue <= nParam; break; } return bRlt; }
public static bool LimitOperatorValue(ELimitOperator eOpt, bool nCurrValue, bool nParam) { bool bRlt = false; switch(eOpt) { case ELimitOperator.ELO_Equal: bRlt = nCurrValue == nParam; break; case ELimitOperator.ELO_NotEuqal: bRlt = nCurrValue != nParam; break; } return bRlt; }