public void WriteWorkoutTime(WorkoutTimeDB w) { WorkoutTimeDB del = new WorkoutTimeDB { Date = w.Date }; _connection.Delete(del); _connection.Insert(w); }
void saveButtonOnClick(object sender, EventArgs e) { WorkoutTimeDB wtDB = new WorkoutTimeDB() { Date = DateTime.Now.ToString(), Time = stopwatch.date.ToString() }; database.WriteWorkoutTime(wtDB); Navigation.PopAsync(); }