Ejemplo n.º 1
0
        /// <summary>
        /// Creates the default settings.
        /// </summary>
        /// <returns></returns>
        public static ImageViewApplicationSettings CreateDefaultSettings()
        {
            var settings = new ImageViewApplicationSettings
            {
                AlwaysOntop                         = false,
                AutoRandomizeCollection             = true,
                LastUsedSearchPaths                 = new List <string>(),
                ShowImageViewFormsInTaskBar         = true,
                NextImageAnimation                  = ChangeImageAnimation.None,
                ImageTransitionTime                 = 1000,
                SlideshowInterval                   = 5000,
                PrimaryImageSizeMode                = (int)PictureBoxSizeMode.Zoom,
                PasswordProtectBookmarks            = false,
                PasswordDerivedString               = "",
                ShowNextPrevControlsOnEnterWindow   = false,
                ThumbnailSize                       = 256,
                MaxThumbnails                       = 256,
                ConfirmApplicationShutdown          = true,
                AutomaticUpdateCheck                = true,
                LastUpdateCheck                     = new DateTime(2010, 1, 1),
                ExtendedAppSettings                 = ApplicationSettingsHelper.Create(),
                ImageCacheSize                      = 134217728, // 128 Mb,
                ToggleSlideshowWithThirdMouseButton = true,
            };

            return(settings);
        }