Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 public void addCaseLine(ICaseLine caseLine)
 {
     this.CaseStatement.CaseLines.Add(caseLine);
 }