Example #1
0
        public void WriteWorkoutTime(WorkoutTimeDB w)
        {
            WorkoutTimeDB del = new WorkoutTimeDB
            {
                Date = w.Date
            };

            _connection.Delete(del);

            _connection.Insert(w);
        }
Example #2
0
        void saveButtonOnClick(object sender, EventArgs e)
        {
            WorkoutTimeDB wtDB = new WorkoutTimeDB()
            {
                Date = DateTime.Now.ToString(),
                Time = stopwatch.date.ToString()
            };

            database.WriteWorkoutTime(wtDB);
            Navigation.PopAsync();
        }