Ejemplo n.º 1
0
 public Row Add()
 {
     Row ret = new Row(_table, List.Count);
     List.Add(ret);
     return ret;
 }
Ejemplo n.º 2
0
 public ReportEventArgs(Report report, Row lastestRow)
 {
     _report = report; _lastestRow = lastestRow;
 }
Ejemplo n.º 3
0
 public Row Add(params string[] vals)
 {
     Row ret = new Row(_table, vals, List.Count);
     List.Add(ret);
     return ret;
 }
Ejemplo n.º 4
0
 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;
     }
 }
Ejemplo n.º 5
0
 public void RaiseOnAddRow(Row latestRow)
 {
     this.OnAddRow(this, new ReportEventArgs(this, latestRow));
 }
Ejemplo n.º 6
0
 public Field this[int col, Row row]
 {
     get{
         return this[col, row.Id];
     }
 }
Ejemplo n.º 7
0
 public Field this[Column col, Row row]
 {
     get{
         return this[col.Id, row.Id];
     }
 }
Ejemplo n.º 8
0
 public Field(Table table, int row, int col)
 {
     _table = table;
     _column = _table.Columns[col];
     _row = _table.AddRow();
 }
Ejemplo n.º 9
0
 public Field(Table table, int row, Column col)
 {
     _table = table;
     _row = _table.Rows[row];
     if (_row == null)
         _row = _table.AddRow();
     _column = col;
 }
Ejemplo n.º 10
0
 public Field(Table table, Row row, Column col)
 {
     _table = table; _row = row; _column = col;
 }