public async void DeleteReminderV(int id) { Vaccine ed = await SelectVaccine(id); var db = new SQLiteAsyncConnection(dbPath); await db.DeleteAsync(ed); }
public async void UpdateReminderV(Vaccine ed, DateTime dt, String str, Reminder r) { var db = new SQLiteAsyncConnection(dbPath); int id = await db.InsertAsync(ed); r.dateTime = dt; r.other = str; r.stype = "Прививка"; r.type = ed.id; await db.UpdateAsync(r); }
public async void InsertReminderVaccine(Vaccine ed, DateTime dt, String str) { var db = new SQLiteAsyncConnection(dbPath); var res = await db.InsertAsync(ed); Reminder rem = new Reminder(); rem.id_child = CurrentChild.id; rem.dateTime = dt; rem.type = ed.id; rem.stype = "Прививка"; rem.other = str; InsertReminder(rem); }