Esempio n. 1
0
        public async void DeleteReminderV(int id)
        {
            Vaccine ed = await SelectVaccine(id);

            var db = new SQLiteAsyncConnection(dbPath);
            await db.DeleteAsync(ed);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }