Beispiel #1
0
    /**
     * Adds a measurement to a Child profile. This will update the Child's entry in the local database to reflect the change.
     **/
    public Boolean AddMeasurementForDateAndType(DateTime date, MeasurementType measurementType, Units currentUnits, double value)
    {
        ChildDatabaseAccess childDB = new ChildDatabaseAccess();

        childDB.InitializeSync();
        Measurements.AddMeasurementForDateAndType(date, measurementType, currentUnits, value);
        childDB.SaveUserChildSync(this);
        childDB.CloseSyncConnection();
        return(true);
    }