コード例 #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);
 }
コード例 #2
0
 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();
 }