Exemplo n.º 1
0
        private void AddRow(ITabularParameterRow row)
        {
            var textRow = new TextRow(row.Type, row.VerificationStatus);

            for (var i = 0; i < row.Values.Count; i++)
            {
                var cell = new TextCell(row.Values[i]);
                textRow.Add(cell);
                _columns[i].EnsureFit(cell.Text);
            }
            _rows.Add(textRow);
        }
Exemplo n.º 2
0
        public ITextRow AddRow(params object[] cols)
        {
            TextRow row = new TextRow(this);

            foreach (object o in cols)
            {
                String str = o.ToString().Trim();
                row.Add(str);
                //if (colLength.Count >= row.Count)
                //{
                //    int curLength = colLength[row.Count - 1];
                //    if (str.Length > curLength) colLength[row.Count - 1] = str.Length;
                //}
                //else
                //{
                //    colLength.Add(str.Length);
                //}
            }
            rows.Add(row);
            return(row);
        }
Exemplo n.º 3
0
        public ITextRow AddRow(params string[][] cols)
        {
            var row = new TextRow(this);

            foreach (object o in cols)
            {
                var str = o.ToString().Trim();
                row.Add(str);
                if (_colLength.Count >= row.Count)
                {
                    var curLength = _colLength[row.Count - 1];
                    if (str.Length > curLength)
                    {
                        _colLength[row.Count - 1] = str.Length;
                    }
                }
                else
                {
                    _colLength.Add(str.Length);
                }
            }
            _rows.Add(row);
            return(row);
        }