Exemplo n.º 1
0
            public ProductsTDSRow AddProductsTDSRow(string ProductName, int SupplierID, int CategoryID, string QuantityPerUnit, System.Decimal UnitPrice, short UnitsInStock, short UnitsOnOrder, short ReorderLevel, bool Discontinued)
            {
                ProductsTDSRow rowProductsTDSRow = ((ProductsTDSRow)(this.NewRow()));

                rowProductsTDSRow.ItemArray = new object[] {
                    null,
                    ProductName,
                    SupplierID,
                    CategoryID,
                    QuantityPerUnit,
                    UnitPrice,
                    UnitsInStock,
                    UnitsOnOrder,
                    ReorderLevel,
                    Discontinued
                };
                this.Rows.Add(rowProductsTDSRow);
                return(rowProductsTDSRow);
            }
Exemplo n.º 2
0
 public ProductsTDSRowChangeEvent(ProductsTDSRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemplo n.º 3
0
 public void RemoveProductsTDSRow(ProductsTDSRow row)
 {
     this.Rows.Remove(row);
 }
Exemplo n.º 4
0
 public void AddProductsTDSRow(ProductsTDSRow row)
 {
     this.Rows.Add(row);
 }