Example #1
0
            public GoodsRow AddGoodsRow()
            {
                GoodsRow rowGoodsRow = ((GoodsRow)(this.NewRow()));

                rowGoodsRow.ItemArray = new object[] {
                    null
                };
                this.Rows.Add(rowGoodsRow);
                return(rowGoodsRow);
            }
Example #2
0
        private static List <GoodsRow> AddTenRows()
        {
            List <GoodsRow> goodsRowCollection = new List <GoodsRow>();

            for (int i = 0; i < 9; i++)
            {
                GoodsRow row = new GoodsRow();
                row.Count    = i;
                row.Goods    = goodsCollection[i];
                row.Operator = userCollection[i];
                row.Price    = i * 1.1;
            }
            return(goodsRowCollection);
        }
 public void AddGoodsRow(GoodsRow row) {
     this.Rows.Add(row);
 }
 public GoodsRowChangeEvent(GoodsRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
 public void RemoveGoodsRow(GoodsRow row) {
     this.Rows.Remove(row);
 }
Example #6
0
 public GoodsRowChangeEvent(GoodsRow row, System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Example #7
0
 public void RemoveGoodsRow(GoodsRow row)
 {
     this.Rows.Remove(row);
 }
Example #8
0
 public void AddGoodsRow(GoodsRow row)
 {
     this.Rows.Add(row);
 }