Ejemplo n.º 1
0
            public WeaponsRow AddWeaponsRow(string WeaponId, string Manufacturer, string Model, string Caliber, int Class)
            {
                WeaponsRow rowWeaponsRow = ((WeaponsRow)(this.NewRow()));

                rowWeaponsRow.ItemArray = new object[] {
                    WeaponId,
                    Manufacturer,
                    Model,
                    Caliber,
                    Class
                };
                this.Rows.Add(rowWeaponsRow);
                return(rowWeaponsRow);
            }
 public void RemoveWeaponsRow(WeaponsRow row) {
     this.Rows.Remove(row);
 }
 public void AddWeaponsRow(WeaponsRow row) {
     this.Rows.Add(row);
 }
 public WeaponsRowChangeEvent(WeaponsRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
 public WeaponsRowChangeEvent(WeaponsRow row, DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
 public CompetitorsRow AddCompetitorsRow(int CompetitorId, ShootersRow parentShootersRowByShootersCompetitors, int ShooterClass, WeaponsRow parentWeaponsRowByWeaponsCompetitors, CompetitionRow parentCompetitionRowByCompetitionCompetitors, PatrolsRow parentPatrolsRowByPatrolsCompetitors, int Lane, int FinalShootingPlace) {
     CompetitorsRow rowCompetitorsRow = ((CompetitorsRow)(this.NewRow()));
     object[] columnValuesArray = new object[] {
             CompetitorId,
             null,
             ShooterClass,
             null,
             null,
             null,
             Lane,
             FinalShootingPlace};
     if ((parentShootersRowByShootersCompetitors != null)) {
         columnValuesArray[1] = parentShootersRowByShootersCompetitors[0];
     }
     if ((parentWeaponsRowByWeaponsCompetitors != null)) {
         columnValuesArray[3] = parentWeaponsRowByWeaponsCompetitors[0];
     }
     if ((parentCompetitionRowByCompetitionCompetitors != null)) {
         columnValuesArray[4] = parentCompetitionRowByCompetitionCompetitors[0];
     }
     if ((parentPatrolsRowByPatrolsCompetitors != null)) {
         columnValuesArray[5] = parentPatrolsRowByPatrolsCompetitors[1];
     }
     rowCompetitorsRow.ItemArray = columnValuesArray;
     this.Rows.Add(rowCompetitorsRow);
     return rowCompetitorsRow;
 }
Ejemplo n.º 7
0
 public WeaponsRowChangeEvent(WeaponsRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Ejemplo n.º 8
0
 public void RemoveWeaponsRow(WeaponsRow row)
 {
     this.Rows.Remove(row);
 }
Ejemplo n.º 9
0
 public void AddWeaponsRow(WeaponsRow row)
 {
     this.Rows.Add(row);
 }