/// <summary> /// return the case line with id of given rule /// </summary> /// <param name="index">Rule ID</param> /// <returns>Case line</returns> public ICaseLine getCaseLine(int index) { ICaseLine returnCaseLine = null; foreach (var caseLine in CaseStatement.CaseLines) { if (caseLine.Rule.ID == index) { returnCaseLine = caseLine; break; } } return(returnCaseLine); }
/// <summary> /// Insert caseline to the specified index. /// </summary> /// <param name="caseLine"></param> public void addCaseLine(int index, ICaseLine caseLine) { this.CaseStatement.CaseLines.Insert(index, caseLine); }
public void addCaseLine(ICaseLine caseLine) { this.CaseStatement.CaseLines.Add(caseLine); }