Ejemplo n.º 1
0
        public void AddRow(CSVTableRow row)
        {
            for (var i = 0; i < row.Cells.Count; i++)
            {
                if (row.Cells[i].Length > _maxColumnLengths[i])
                {
                    _maxColumnLengths[i] = row.Cells[i].Length;
                }
            }

            _rows.Add(row);
            NotifyItemInserted(_rows.Count - 1);
        }
Ejemplo n.º 2
0
        public IEnumerable <CSVTableRow> GetNextRowSet()
        {
            var lineCount = 0;
            var line      = _fileReader.ReadLine();

            while (line != null)
            {
                var row = new CSVTableRow();
                row.Cells.AddRange(line.Split(","));

                yield return(row);

                lineCount++;

                line = !LazyLoad || lineCount < LazyLoadLimit
                    ? _fileReader.ReadLine()
                    : null;
            }
        }
Ejemplo n.º 3
0
 public ItemClickEventArgs(int position, CSVTableRow row)
 {
     Position = position;
     Row      = row;
 }