public Row Add() { Row ret = new Row(_table, List.Count); List.Add(ret); return ret; }
public ReportEventArgs(Report report, Row lastestRow) { _report = report; _lastestRow = lastestRow; }
public Row Add(params string[] vals) { Row ret = new Row(_table, vals, List.Count); List.Add(ret); return ret; }
public Field[] this[Row row] { get{ Field[] flds = new Field[this._table.Columns.Count]; int i = 0; bool filled = false; foreach(Field fld in _table.Fields){ if (fld.Row == row){ flds[i++] = fld; filled = true; } } if (!filled){ foreach(Column col in _table.Columns){ Field fld= new Field(_table, row, col); flds[i++] = fld; List.Add(fld); } } return flds; } }
public void RaiseOnAddRow(Row latestRow) { this.OnAddRow(this, new ReportEventArgs(this, latestRow)); }
public Field this[int col, Row row] { get{ return this[col, row.Id]; } }
public Field this[Column col, Row row] { get{ return this[col.Id, row.Id]; } }
public Field(Table table, int row, int col) { _table = table; _column = _table.Columns[col]; _row = _table.AddRow(); }
public Field(Table table, int row, Column col) { _table = table; _row = _table.Rows[row]; if (_row == null) _row = _table.AddRow(); _column = col; }
public Field(Table table, Row row, Column col) { _table = table; _row = row; _column = col; }