Example #1
0
 public SettingsViewModel(ImagePowerToolsSettingsRecord settingsRecord)
 {
     EnableFrontendResizeAction = settingsRecord.EnableFrontendResizeAction;
     MaxImageWidth = settingsRecord.MaxImageWidth;
     MaxImageHeight = settingsRecord.MaxImageHeight;
     EnableContentItemFolderCleanup = settingsRecord.EnableContentItemFolderCleanup;
 }
 private ImagePowerToolsSettingsRecord GetDefaultSettings()
 {
     var settings = new ImagePowerToolsSettingsRecord
         {
             EnableFrontendResizeAction = false,
             MaxCacheAgeDays = 30,
             MaxCacheSizeMB = 512,
             MaxImageHeight = 2000,
             MaxImageWidth = 2000,
             EnableContentItemFolderCleanup = true
         };
     return settings;
 }
 public CacheStatisticsViewModel(ImagePowerToolsSettingsRecord settingsRecord)
 {
     DeleteOldLastJobRun = settingsRecord.DeleteOldLastJobRun;
 }