public void Update(Int32 id, String currencyCode, String currencyName, String currencyNo, Boolean cFixed) { CurrencyGW.Update(id, currencyCode, currencyName, currencyNo, cFixed); DataRow dr = this[id]; dr["Currency"] = currencyName; dr["CurrencyCode"] = currencyCode; dr["CurrencyNo"] = currencyNo; dr["Fixed"] = cFixed; }
public void Insert(String currencyCode, String currencyName, String currencyNo, Boolean cFixed) { Int32 id = CurrencyGW.Insert(currencyCode, currencyName, currencyNo, cFixed); DataRow newRow = this.Table.NewRow(); newRow["CurrencyCode"] = currencyCode; newRow["Currency"] = currencyName; newRow["CurrencyNo"] = currencyNo; newRow["Fixed"] = cFixed; newRow["Id"] = id; this.Table.Rows.Add(newRow); }
public void Delete(Int32 id) { CurrencyGW.Delete(id); Table.Rows.Remove(this[id]); }