Exemplo n.º 1
0
            public UnitsRow AddUnitsRow(string UnitsName, string UnitsType, string UnitsAbbreviation)
            {
                UnitsRow rowUnitsRow = ((UnitsRow)(this.NewRow()));

                object[] columnValuesArray = new object[] {
                    null,
                    UnitsName,
                    UnitsType,
                    UnitsAbbreviation
                };
                rowUnitsRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowUnitsRow);
                return(rowUnitsRow);
            }
 public UnitsRowChangeEvent(UnitsRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
 public void RemoveUnitsRow(UnitsRow row) {
     this.Rows.Remove(row);
 }
 public void AddUnitsRow(UnitsRow row) {
     this.Rows.Add(row);
 }
 public OffsetTypesRow AddOffsetTypesRow(UnitsRow parentUnitsRowByOffsetTypes_FK00, string OffsetDescription) {
     OffsetTypesRow rowOffsetTypesRow = ((OffsetTypesRow)(this.NewRow()));
     object[] columnValuesArray = new object[] {
             null,
             null,
             OffsetDescription};
     if ((parentUnitsRowByOffsetTypes_FK00 != null)) {
         columnValuesArray[1] = parentUnitsRowByOffsetTypes_FK00[0];
     }
     rowOffsetTypesRow.ItemArray = columnValuesArray;
     this.Rows.Add(rowOffsetTypesRow);
     return rowOffsetTypesRow;
 }
Exemplo n.º 6
0
 public UnitsRowChangeEvent(UnitsRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemplo n.º 7
0
 public void RemoveUnitsRow(UnitsRow row)
 {
     this.Rows.Remove(row);
 }
Exemplo n.º 8
0
 public void AddUnitsRow(UnitsRow row)
 {
     this.Rows.Add(row);
 }
Exemplo n.º 9
0
 public UnitRow AddUnitRow(string Id, string Name, string Description, string Provenance, string Type, int HitPoint, int Mobility, int AttackPower, int AttackRange, bool Avaliable, string MoveMethod, UnitsRow parentUnitsRowByUnits_Unit)
 {
     UnitRow rowUnitRow = ((UnitRow)(this.NewRow()));
     object[] columnValuesArray = new object[] {
             Id,
             Name,
             Description,
             Provenance,
             Type,
             HitPoint,
             Mobility,
             AttackPower,
             AttackRange,
             Avaliable,
             MoveMethod,
             null};
     if ((parentUnitsRowByUnits_Unit != null)) {
         columnValuesArray[11] = parentUnitsRowByUnits_Unit[0];
     }
     rowUnitRow.ItemArray = columnValuesArray;
     this.Rows.Add(rowUnitRow);
     return rowUnitRow;
 }
 public VariablesRow AddVariablesRow(int VariableID, string SampleMedium, string ValueType, bool IsRegular, string DataType, double NoDataValue, string VariableCode, string VariableName, UnitsRow parentUnitsRowByVariables_FK01, string GeneralCategory, UnitsRow parentUnitsRowByVariables_FK00, double TimeSupport, string Speciation) {
     VariablesRow rowVariablesRow = ((VariablesRow)(this.NewRow()));
     object[] columnValuesArray = new object[] {
             VariableID,
             SampleMedium,
             ValueType,
             IsRegular,
             DataType,
             NoDataValue,
             VariableCode,
             VariableName,
             null,
             GeneralCategory,
             null,
             TimeSupport,
             Speciation};
     if ((parentUnitsRowByVariables_FK01 != null)) {
         columnValuesArray[8] = parentUnitsRowByVariables_FK01[0];
     }
     if ((parentUnitsRowByVariables_FK00 != null)) {
         columnValuesArray[10] = parentUnitsRowByVariables_FK00[0];
     }
     rowVariablesRow.ItemArray = columnValuesArray;
     this.Rows.Add(rowVariablesRow);
     return rowVariablesRow;
 }