コード例 #1
0
 private void UpdateSettings(bool ForceUpdate)
 {
     if (_settingsLastUpdated == null || _settingsLastUpdated.Add(MinimumTimeBetweenUpdates) < DateTime.Now || ForceUpdate)
     {
         UTorrentSettings CurrentSettings = ServiceClient.GetSettings(_token);
         if (_settings == null)
         {
             _settings = new SettingsCollection();
         }
         _settings.ParseSettings(CurrentSettings.Settings, this);
         _settingsLastUpdated = DateTime.Now;
     }
 }