Пример #1
0
 public TemplateRow(TemplateCell name, TemplateCell value)
 {
     this.Name = name;
     this.Flow = value;
 }
Пример #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        private bool ReadFlow()
        {
            bool blnResult = false;

            long col = this._Test.Flow.Column;
            long ncol = FLOW_COLUMNS.Name;
            Excel.Range name;
            Excel.Range value;

            for (long row = PROCESS_ROWS.Testcase; row <= this._WB.shtFlows.RowMax; row++)
            {
                name = (Excel.Range)this._WB.shtTestcases.Base.Cells[row, col];
                value = (Excel.Range)this._WB.shtTestcases.Base.Cells[row, ncol];

                if (!name.MergeCells)
                {
                    TemplateCell Name = new TemplateCell(name.Value, name.Font.ColorIndex, name.Interior.ColorIndex);
                    TemplateCell Flow = new TemplateCell(value.Value, value.Font.ColorIndex, value.Interior.ColorIndex);

                    TemplateRow Row = new TemplateRow(Name, Flow);
                    Row.Check();

                    this._Test.Flow.Rows.Add(Row);

                    if (Row.Stop)
                    {
                        break;
                    }
                }
            }

            return blnResult;
        }
Пример #3
0
 public TemplateRow()
 {
     this.Name = new TemplateCell();
     this.Flow = new TemplateCell();
 }