private void StopTimer() { timer.Stop(); timer.Dispose(); TimeSpan timeToSave = TimeExtensions.StripMilliseconds(DateTime.Now.Subtract(start).Subtract(_pausedTime)); DatabaseHelper dh = new DatabaseHelper(); BreastfeedingLog bl = new BreastfeedingLog(timeToSave, "L", 1); dh.CreateTable(); dh.InsertBreastfeedingLog(bl); dh.Select(); }
public void InsertBreastfeedingLog(BreastfeedingLog bl) { _db.Insert(bl); }