CalDavSynchronizer.DataAccess.GeneralOptionsDataAccess.SaveOptions C# (CSharp) Метод

SaveOptions() публичный Метод

public SaveOptions ( GeneralOptions options ) : void
options CalDavSynchronizer.Contracts.GeneralOptions
Результат void
    public void SaveOptions (GeneralOptions options)
    {
      using (var key = OpenOptionsKey())
      {
        key.SetValue (s_shouldCheckForNewerVersionsValueName, options.ShouldCheckForNewerVersions ? 1 : 0);
        key.SetValue (s_checkIfOnline, options.CheckIfOnline ? 1 : 0);
        key.SetValue (s_storeAppDataInRoamingFolder, options.StoreAppDataInRoamingFolder ? 1 : 0);
        key.SetValue (s_disableCertificateValidation, options.DisableCertificateValidation ? 1 : 0);
        key.SetValue (s_enableClientCertificate, options.EnableClientCertificate ? 1 : 0);
        key.SetValue (s_enableTls12, options.EnableTls12 ? 1 : 0);
        key.SetValue (s_enableSsl3, options.EnableSsl3 ? 1 : 0);
        key.SetValue (s_calDavConnectTimeout, options.CalDavConnectTimeout.ToString());
        key.SetValue (s_fixInvalidSettings, options.FixInvalidSettings ? 1 : 0);
        key.SetValue (s_IncludeCustomMessageClasses, options.IncludeCustomMessageClasses ? 1 : 0);
        key.SetValue (s_LogReportsWithoutWarningsOrErrors, options.LogReportsWithoutWarningsOrErrors ? 1 : 0);
        key.SetValue (s_LogReportsWithWarnings, options.LogReportsWithWarnings ? 1 : 0);
        key.SetValue (s_ShowReportsWithWarningsImmediately, options.ShowReportsWithWarningsImmediately ? 1 : 0);
        key.SetValue (s_ShowReportsWithErrorsImmediately, options.ShowReportsWithErrorsImmediately ? 1 : 0);
        key.SetValue (s_MaxReportAgeInDays, options.MaxReportAgeInDays);
        key.SetValue (s_EnableDebugLog, options.EnableDebugLog ? 1 : 0);
        key.SetValue (s_EnableTrayIcon, options.EnableTrayIcon ? 1 : 0);
        key.SetValue (s_AcceptInvalidCharsInServerResponse, options.AcceptInvalidCharsInServerResponse ? 1 : 0);
        key.SetValue (s_UseUnsafeHeaderParsing, options.UseUnsafeHeaderParsing ? 1 : 0);
        key.SetValue (s_TriggerSyncAfterSendReceive, options.TriggerSyncAfterSendReceive ? 1 : 0);
        key.SetValue (s_ExpandAllSyncProfiles, options.ExpandAllSyncProfiles ? 1 : 0);
      }
    }