public Settings(MainForm mainForm)
 {
     MainForm                = mainForm;
     overwrite               = RegistryUtil.GetBoolean("Overwrite", overwrite);
     replace                 = RegistryUtil.GetString("Replace", replace);
     browseArchiveDirs       = RegistryUtil.GetBoolean("BrowseArchiveDirs", browseArchiveDirs);
     browseArchiveFiles      = RegistryUtil.GetBoolean("BrowseArchiveFiles", browseArchiveFiles);
     suggestFiltersDocLibs   = RegistryUtil.GetBoolean("SuggestFiltersDocLibs", suggestFiltersDocLibs);
     suggestFiltersOtherLibs = RegistryUtil.GetBoolean("SuggestFiltersOtherLibs", suggestFiltersOtherLibs);
     previewThreshold        = RegistryUtil.GetInt32("PreviewThreshold", previewThreshold);
     ulong.TryParse(RegistryUtil.GetString("ZipUploadThreshold", zipUploadThreshold.ToString()), out zipUploadThreshold);
     zipArchiveDirs               = RegistryUtil.GetBoolean("ZipArchiveDirs", zipArchiveDirs);
     zipArchiveFiles              = RegistryUtil.GetBoolean("ZipArchiveFiles", zipArchiveFiles);
     browseCompressedDirs         = RegistryUtil.GetBoolean("BrowseCompressedDirs", browseCompressedDirs);
     browseCompressedFiles        = RegistryUtil.GetBoolean("BrowseCompressedFiles", browseCompressedFiles);
     zipCompressedDirs            = RegistryUtil.GetBoolean("ZipCompressedDirs", zipCompressedDirs);
     zipCompressedFiles           = RegistryUtil.GetBoolean("ZipCompressedFiles", zipCompressedFiles);
     browseEmptyDirs              = RegistryUtil.GetBoolean("BrowseEmptyDirs", browseEmptyDirs);
     browseEmptyFiles             = RegistryUtil.GetBoolean("BrowseEmptyFiles", browseEmptyFiles);
     zipEmptyDirs                 = RegistryUtil.GetBoolean("ZipEmptyDirs", zipEmptyDirs);
     zipEmptyFiles                = RegistryUtil.GetBoolean("ZipEmptyFiles", zipEmptyFiles);
     browseEncryptedDirs          = RegistryUtil.GetBoolean("BrowseEncryptedDirs", browseEncryptedDirs);
     browseEncryptedFiles         = RegistryUtil.GetBoolean("BrowseEncryptedFiles", browseEncryptedFiles);
     zipEncryptedDirs             = RegistryUtil.GetBoolean("ZipEncryptedDirs", zipEncryptedDirs);
     zipEncryptedFiles            = RegistryUtil.GetBoolean("ZipEncryptedFiles", zipEncryptedFiles);
     browseErrorDirs              = RegistryUtil.GetBoolean("BrowseErrorDirs", browseErrorDirs);
     browseErrorFiles             = RegistryUtil.GetBoolean("BrowseErrorFiles", browseErrorFiles);
     zipErrorDirs                 = RegistryUtil.GetBoolean("ZipErrorDirs", zipErrorDirs);
     zipErrorFiles                = RegistryUtil.GetBoolean("ZipErrorFiles", zipErrorFiles);
     browseBlockedFiles           = RegistryUtil.GetBoolean("BrowseBlockedFiles", browseBlockedFiles);
     zipBlockedFiles              = RegistryUtil.GetBoolean("ZipBlockedFiles", zipBlockedFiles);
     browseHiddenDirs             = RegistryUtil.GetBoolean("BrowseHiddenDirs", browseHiddenDirs);
     browseHiddenFiles            = RegistryUtil.GetBoolean("BrowseHiddenFiles", browseHiddenFiles);
     zipHiddenDirs                = RegistryUtil.GetBoolean("ZipHiddenDirs", zipHiddenDirs);
     zipHiddenFiles               = RegistryUtil.GetBoolean("ZipHiddenFiles", zipHiddenFiles);
     browseNotContentIndexedDirs  = RegistryUtil.GetBoolean("BrowseNotContentIndexedDirs", browseNotContentIndexedDirs);
     browseNotContentIndexedFiles = RegistryUtil.GetBoolean("BrowseNotContentIndexedFiles", browseNotContentIndexedFiles);
     zipNotContentIndexedDirs     = RegistryUtil.GetBoolean("ZipNotContentIndexedDirs", zipNotContentIndexedDirs);
     zipNotContentIndexedFiles    = RegistryUtil.GetBoolean("ZipNotContentIndexedFiles", zipNotContentIndexedFiles);
     browseOfflineDirs            = RegistryUtil.GetBoolean("BrowseOfflineDirs", browseOfflineDirs);
     browseOfflineFiles           = RegistryUtil.GetBoolean("BrowseOfflineFiles", browseOfflineFiles);
     zipOfflineDirs               = RegistryUtil.GetBoolean("ZipOfflineDirs", zipOfflineDirs);
     zipOfflineFiles              = RegistryUtil.GetBoolean("ZipOfflineFiles", zipOfflineFiles);
     browseReadOnlyDirs           = RegistryUtil.GetBoolean("BrowseReadOnlyDirs", browseReadOnlyDirs);
     browseReadOnlyFiles          = RegistryUtil.GetBoolean("BrowseReadOnlyFiles", browseReadOnlyFiles);
     zipReadOnlyDirs              = RegistryUtil.GetBoolean("ZipReadOnlyDirs", zipReadOnlyDirs);
     zipReadOnlyFiles             = RegistryUtil.GetBoolean("ZipReadOnlyFiles", zipReadOnlyFiles);
     browseReparsePointDirs       = RegistryUtil.GetBoolean("BrowseReparsePointDirs", browseReparsePointDirs);
     browseReparsePointFiles      = RegistryUtil.GetBoolean("BrowseReparsePointFiles", browseReparsePointFiles);
     zipReparsePointDirs          = RegistryUtil.GetBoolean("ZipReparsePointDirs", zipReparsePointDirs);
     zipReparsePointFiles         = RegistryUtil.GetBoolean("ZipReparsePointFiles", zipReparsePointFiles);
     browseSparseFileDirs         = RegistryUtil.GetBoolean("BrowseSparseFileDirs", browseSparseFileDirs);
     browseSparseFileFiles        = RegistryUtil.GetBoolean("BrowseSparseFileFiles", browseSparseFileFiles);
     zipSparseFileDirs            = RegistryUtil.GetBoolean("ZipSparseFileDirs", zipSparseFileDirs);
     zipSparseFileFiles           = RegistryUtil.GetBoolean("ZipSparseFileFiles", zipSparseFileFiles);
     browseSystemDirs             = RegistryUtil.GetBoolean("BrowseSystemDirs", browseSystemDirs);
     browseSystemFiles            = RegistryUtil.GetBoolean("BrowseSystemFiles", browseSystemFiles);
     zipSystemDirs                = RegistryUtil.GetBoolean("ZipSystemDirs", zipSystemDirs);
     zipSystemFiles               = RegistryUtil.GetBoolean("ZipSystemFiles", zipSystemFiles);
     browseTemporaryDirs          = RegistryUtil.GetBoolean("BrowseTemporaryDirs", browseTemporaryDirs);
     browseTemporaryFiles         = RegistryUtil.GetBoolean("BrowseTemporaryFiles", browseTemporaryFiles);
     zipTemporaryDirs             = RegistryUtil.GetBoolean("ZipTemporaryDirs", zipTemporaryDirs);
     zipTemporaryFiles            = RegistryUtil.GetBoolean("ZipTemporaryFiles", zipTemporaryFiles);
 }