public static void CreateNewRecord(Types.BookingTypeEnum type, DateTime date, decimal amount) { var newRow = Dataset.Buchungssatz.NewBuchungssatzRow(); newRow.Kategorie = string.Empty; newRow.Betrag = amount; newRow.Datum = date; newRow.Memo = string.Empty; newRow.Typ = (int)type; Dataset.Buchungssatz.Rows.Add(newRow); }
private void CreateTestRow(string category, decimal amount, DateTime date, string memo, Types.BookingTypeEnum type) { var testRow = _testDataTable.NewBuchungssatzRow(); testRow.Kategorie = category; testRow.Betrag = amount; testRow.Datum = date; testRow.Memo = memo; testRow.Typ = (int)type; _testDataTable.AddBuchungssatzRow(testRow); }