本文整理汇总了C#中Step.getLevelIN方法的典型用法代码示例。如果您正苦于以下问题:C# Step.getLevelIN方法的具体用法?C# Step.getLevelIN怎么用?C# Step.getLevelIN使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Step
的用法示例。
在下文中一共展示了Step.getLevelIN方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReviewExpression
/// <summary>
/// Updates an expression according to translation rules
/// </summary>
/// <param name="step">the step in which the expression occurs</param>
/// <param name="expression"></param>
/// <returns>the updated string</returns>
private string ReviewExpression(Step step, string expression)
{
string retVal = expression;
if (expression.IndexOf('%') >= 0)
{
SubSequence subSequence = step.TestCase.SubSequence;
retVal = retVal.Replace("%D_LRBG", format_decimal_as_str(subSequence.getD_LRBG()));
retVal = retVal.Replace("%Level", format_level(subSequence.getLevel()));
retVal = retVal.Replace("%Mode", format_mode(subSequence.getMode()));
retVal = retVal.Replace("%NID_LRBG", format_decimal_as_str(subSequence.getNID_LRBG()));
retVal = retVal.Replace("%Q_DIRLRBG", format_decimal_as_str(subSequence.getQ_DIRLRBG()));
retVal = retVal.Replace("%Q_DIRTRAIN", format_decimal_as_str(subSequence.getQ_DIRTRAIN()));
retVal = retVal.Replace("%Q_DLRBG", format_decimal_as_str(subSequence.getQ_DLRBG()));
retVal = retVal.Replace("%RBC_ID", format_decimal_as_str(subSequence.getRBC_ID()));
retVal = retVal.Replace("%RBCPhone", format_str(subSequence.getRBCPhone()));
retVal = retVal.Replace("%Step_Distance", step.getDistance() + "");
retVal = retVal.Replace("%Step_LevelIN", format_level(step.getLevelIN()));
retVal = retVal.Replace("%Step_LevelOUT", format_level(step.getLevelOUT()));
retVal = retVal.Replace("%Step_ModeIN", format_mode(step.getModeOUT()));
retVal = retVal.Replace("%Step_ModeOUT", format_mode(step.getModeOUT()));
for (int i = 0; i < step.StepMessages.Count; i++)
{
DBElements.DBMessage message = step.StepMessages[i] as DBElements.DBMessage;
if (message != null)
{
retVal = retVal.Replace("%Step_Messages_" + i, format_message(message));
}
}
}
return retVal;
}