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