Пример #1
0
        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();
        }
Пример #2
0
 public void InsertBreastfeedingLog(BreastfeedingLog bl)
 {
     _db.Insert(bl);
 }