Ejemplo n.º 1
0
 private void ProcessReceivedMeasurements()
 {
     MeasurementImporter.ImportMeasurements(logbook, settings, measurements);
     settings.LastLogEntryDate = DateTime.Today;
     settings.LastLogEntry     = CommonResources.Text.ActionOk;
     settings.LastUpdate       = WithingsWebServiceProxy.GetNowEpoch();
     settings.Save(logbook);
 }
 private void ProcessResponse(ILogbook logbook, LogbookSettings settings, IList <WithingsWebServiceProxy.MeasurementInfo> measurements)
 {
     // Running in the UI thread.
     if (measurements != null)
     {
         MeasurementImporter.ImportMeasurements(logbook, settings, measurements);
         settings.LastUpdate = WithingsWebServiceProxy.GetNowEpoch();
         AddLogEntry(settings, "");
     }
     settings.Save(logbook);
     ExtendSettingsPages.RefreshSettings();
 }