/*insert a write record into database*/ public void addRecord(writeRecord r) { if (db != null && r != null) { if (db.InsertInto("history", r.toStrings()) == 0) { description = db.errMsg; toggle = true; } } }
public void addRecord(float score, System.DateTime time) { writeRecord s = new writeRecord(word, score, time); records.Add(s); }